/*
 Theme Name:    Electro Child
 Theme URI:     https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
 Description:   This is the child theme of Electro
 Author:        MadrasThemes
 Author URI:    https://madrasthemes.com/
 Template:      electro
 Version:       3.2.4
 License:       GNU General Public License v2 or later
 License URI:   http://www.gnu.org/licenses/gpl-2.0.html
 Tags:          light, dark, two-columns, right-sidebar, responsive-layout
 Text Domain:   electro-child
*/
.float-end.payment {
    width: 33% !important;
}

.rd-catalog-seo {
    clear: both;
    margin: 36px 0 8px;
}

.rd-catalog-seo__text {
    font-size: 15px;
    line-height: 1.7;
    color: #3a3a3a;
}

.rd-catalog-seo__text p:last-child {
    margin-bottom: 0;
}

.rd-catalog-seo a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rd-catalog-seo__faq {
    margin-top: 28px;
}

.rd-catalog-seo__faq > h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.3;
}

.rd-faq {
    margin: 0 0 8px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
}

.rd-faq summary {
    display: block;
    position: relative;
    padding: 14px 44px 14px 16px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}

.rd-faq summary::-webkit-details-marker {
    display: none;
}

.rd-faq summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: #888;
}

.rd-faq[open] summary::after {
    content: "–";
}

.rd-faq__a {
    padding: 0 16px 14px;
    line-height: 1.65;
    color: #3a3a3a;
}

.rd-faq__a p:last-child {
    margin-bottom: 0;
}

/*
 * Карточка товара на десктопе вынимается из потока (position: absolute).
 * Если в нижнем ряду одна карточка, ряд схлопывается и следующий блок
 * прыгает вверх. Если нижний ряд полный, кнопки зависают над следующим
 * блоком и наведение срывается. Нижний ряд оставляем в потоке.
 */
@media (min-width: 1200px) and (max-width: 1479.98px) {
    .products > .product:nth-last-child(-n+3):hover .product-inner,
    .products > .product:nth-last-child(-n+3).hover .product-inner,
    .owl-item > .product:nth-last-child(-n+3):hover .product-inner,
    .owl-item > .product:nth-last-child(-n+3).hover .product-inner {
        position: relative;
        top: auto;
        height: auto;
    }
}

@media (min-width: 1480px) {
    .products > .product:nth-last-child(-n+4):hover .product-inner,
    .products > .product:nth-last-child(-n+4).hover .product-inner,
    .owl-item > .product:nth-last-child(-n+4):hover .product-inner,
    .owl-item > .product:nth-last-child(-n+4).hover .product-inner {
        position: relative;
        top: auto;
        height: auto;
    }
}

/* Описание товара (вкладка WooCommerce) */
.single-product #tab-description,
.single-product #tab-description .electro-description,
.single-product #tab-description .s-user-content {
    color: #202020;
    font-size: 15px;
    line-height: 1.7;
}

.single-product #tab-description p,
.single-product #tab-description li,
.single-product #tab-description td,
.single-product #tab-description .s-user-content p {
    color: #202020;
}

.single-product #tab-description p {
    margin-bottom: 1.15em;
}

.single-product #tab-description p:last-child {
    margin-bottom: 0;
}

.single-product #tab-description strong,
.single-product #tab-description b {
    color: #202020;
    font-weight: 600;
}

.single-product #tab-description h1,
.single-product #tab-description .h1,
.single-product #tab-description h2,
.single-product #tab-description .h2 {
    color: #202020;
    font-size: 1.45em;
    line-height: 1.35;
    font-weight: 600;
    margin: 1.75em 0 0.65em;
}

.single-product #tab-description h3,
.single-product #tab-description .h3 {
    color: #202020;
    font-size: 1.25em;
    line-height: 1.35;
    font-weight: 600;
    margin: 1.5em 0 0.55em;
}

.single-product #tab-description h4,
.single-product #tab-description .h4,
.single-product #tab-description h5,
.single-product #tab-description .h5,
.single-product #tab-description h6,
.single-product #tab-description .h6 {
    color: #202020;
    font-size: 1.05em;
    line-height: 1.4;
    font-weight: 600;
    margin: 1.25em 0 0.45em;
}

.single-product #tab-description .s-user-content > :first-child,
.single-product #tab-description .tab-pane > :first-child {
    margin-top: 0;
}

.single-product #tab-description ul,
.single-product #tab-description ol {
    margin: 0 0 1.15em;
    padding-left: 1.35em;
    color: #202020;
}

.single-product #tab-description li {
    margin-bottom: 0.4em;
}

.single-product #tab-description li:last-child {
    margin-bottom: 0;
}

.single-product #tab-description a {
    color: #202020;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-product #tab-description a:hover,
.single-product #tab-description a:focus {
    color: #000;
}

/* Лишние отступы и пустые блоки из импортированных описаний */
.single-product #tab-description .b-product-tabs,
.single-product #tab-description .tab-content {
    margin-top: 0 !important;
}

.single-product #tab-description .s-related-products:not(:has(a)) {
    display: none;
}

.single-product #tab-description .product_meta {
    margin-top: 1.75em;
    padding-top: 1.25em;
    border-top: 1px solid #e8e8e8;
    font-size: 14px;
    line-height: 1.65;
    color: #444;
}

.single-product #tab-description .product_meta .sku,
.single-product #tab-description .product_meta .posted_in {
    display: block;
    margin-bottom: 0.35em;
}

@media (max-width: 767.98px) {
    .single-product .wc-tab#tab-description {
        padding: 1.25em 1em;
    }
}

/* FAQ под описанием на карточке */
.single-product .realdevice-product-faq {
    border: 1px solid #ddd;
    border-radius: 1em;
    padding: 2em 2.5em;
    margin-top: 2rem;
}

.single-product .realdevice-product-faq > h2 {
    font-size: 1.35em;
    margin: 0 0 1em;
    color: #202020;
}

.single-product .realdevice-faq-item {
    margin: 0 0 8px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
}

.single-product .realdevice-faq-item summary {
    display: block;
    position: relative;
    padding: 14px 44px 14px 16px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    color: #202020;
}

.single-product .realdevice-faq-item summary::-webkit-details-marker {
    display: none;
}

.single-product .realdevice-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: #888;
}

.single-product .realdevice-faq-item[open] summary::after {
    content: "–";
}

.single-product .realdevice-faq-answer,
.single-product .realdevice-faq-answer p {
    padding: 0 16px 14px;
    line-height: 1.65;
    color: #202020;
}

.single-product .realdevice-faq-answer p:last-child {
    margin-bottom: 0;
}