

/*
Theme Name: BYDSHOP WooCommerce
Theme URI: https://bydshop.example/
Author: BYDSHOP
Description: Адаптация дизайна BYDSHOP с LiveStore для WordPress + WooCommerce. Темно-синяя палитра, красные акценты, каталог марок и подбор по VIN.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bydshop
*/

/* BYDSHOP WordPress/WooCommerce integration and responsive overrides */
:root { --bydshop-navy: #101d2b; --bydshop-red: #ed202b; --bydshop-ink: #172536; }
body { margin:0; color:var(--bydshop-ink); }
.site-header { position:relative; z-index:20; }
.wordmark { display:inline-flex; align-items:center; gap:5px; text-decoration:none; font-weight:900; font-size:26px; letter-spacing:-1px; }
.wordmark span { color:var(--bydshop-red); } .wordmark b { color:inherit; }
.hero-banner--fallback { min-height:clamp(240px,34vw,440px); display:flex; align-items:flex-end; position:relative; overflow:hidden; background:radial-gradient(ellipse at 75% 40%,#31465b 0%,#182a3d 36%,#0b1521 75%); }
.hero-banner--fallback:before { content:""; position:absolute; inset:0; background:linear-gradient(100deg,rgba(8,17,28,.1),rgba(8,17,28,.35)), repeating-linear-gradient(135deg,transparent 0 70px,rgba(255,255,255,.025) 71px 73px); }
.hero-banner__content { position:relative; padding:clamp(28px,6vw,78px); color:#fff; max-width:780px; display:grid; gap:14px; }
.hero-banner__content span { color:#ff6068; font-size:14px; letter-spacing:.18em; font-weight:800; }
.hero-banner__content strong { font-size:clamp(26px,4.5vw,58px); line-height:1.05; text-transform:uppercase; }
.bydshop-home .products { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.bydshop-home .products li.product { width:auto !important; margin:0 !important; float:none !important; padding:18px; background:#fff; border:1px solid #e4e8ed; border-radius:14px; }
.bydshop-home .products li.product img { width:100%; height:190px; object-fit:contain; margin:0 0 15px; }
.bydshop-home .products li.product .woocommerce-loop-product__title { color:#172536; font-size:15px; }
.bydshop-home .products li.product .price { color:#172536; font-weight:800; }
.bydshop-home .products li.product .button { border-radius:6px; background:var(--bydshop-red); color:#fff; }
.bydshop-empty-products { padding:28px; border:1px dashed #aab5c2; border-radius:14px; background:#f7f9fb; }
.button--red, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background:var(--bydshop-red); color:#fff; border:0; border-radius:6px; padding:14px 18px; text-decoration:none; font-weight:700; }
.bydshop-vin-form { display:grid; gap:14px; }
.bydshop-vin-form label { display:grid; gap:7px; font-size:14px; font-weight:700; }
.bydshop-vin-form input, .bydshop-vin-form textarea { width:100%; padding:14px 14px; border:1px solid #d5dce4; border-radius:7px; font:inherit; box-sizing:border-box; background:#fff; }
.bydshop-vin-form small { color:#687585; line-height:1.5; }
.bydshop-form-success { padding:14px; background:#e9f8ef; color:#17663a; border-radius:8px; }
.bydshop-form-error { padding:14px; background:#fff0f0; color:#a61b22; border-radius:8px; }
.help-layout { display:grid; grid-template-columns:1fr minmax(300px,.8fr); gap:clamp(28px,6vw,80px); align-items:start; }
.help-note { padding:16px; background:#f2f5f8; border-left:3px solid var(--bydshop-red); display:grid; gap:5px; margin-top:20px; }
.bydshop-post-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.bydshop-post-card { overflow:hidden; border:1px solid #e2e7ec; border-radius:14px; background:#fff; }
.bydshop-post-card>div { padding:20px; } .bydshop-post-card h3 a { color:inherit; text-decoration:none; }
.bydshop-post-image img { width:100%; height:190px; object-fit:cover; display:block; }
.site-footer { padding:48px 0 26px; background:#0c1723; color:#eaf0f6; }
.footer-inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px; }
.footer-inner .wordmark b { color:#fff; } .footer-links { display:flex; gap:18px; flex-wrap:wrap; } .footer-links a { color:#eaf0f6; }
.site-footer small { width:100%; color:#aab5c2; }
.page-progress { position:fixed; z-index:1000; inset:0 0 auto; height:3px; pointer-events:none; } #page-progress-bar { display:block; width:0; height:100%; background:var(--bydshop-red); }
.woocommerce-main { padding:45px 0; min-height:50vh; }
/*.woocommerce-breadcrumb { margin-bottom:24px !important; }*/
.woocommerce div.product .product_title { color:#172536; }
@media (max-width: 900px) {
 .bydshop-home .products { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .help-layout { grid-template-columns:1fr; }
 .brand-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
 .hero-bottom { gap:24px; }
 .bydshop-home .products, .bydshop-post-grid, .recommend-grid, .offer-grid { grid-template-columns:1fr !important; }
 .brand-grid { grid-template-columns:1fr 1fr; }
 .brand-card { min-height:180px; }
 .section-heading { gap:14px; }
 .section-number { display:none; }
 .footer-inner { align-items:flex-start; flex-direction:column; }
}


/* Верхний баннер BYDSHOP, предоставленный владельцем сайта 
.hero-banner--image {
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #0b1521;
  line-height: 0;
}
.hero-banner--image::before { display: none; }
.hero-banner--image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
@media (max-width: 600px) {
  .hero-banner--image img { width: 100%; height: auto; }
}*/


/* BYDSHOP category and catalog page */
.bydshop-catalog { padding: 24px 0 70px; background: #f6f8fa; }
.bydshop-catalog__inner { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.bydshop-breadcrumbs { margin: 0 0 18px; color: #667587; font-size: 14px; }
.bydshop-breadcrumbs a { color: #526273; text-decoration: none; }
.bydshop-category-hero { display:flex; justify-content:space-between; align-items:center; gap:30px; padding:clamp(26px,4vw,52px); border-radius:16px; color:#fff; background:radial-gradient(ellipse at 85% 15%,#334b61 0%,#182a3c 43%,#0b1521 100%); overflow:hidden; position:relative; margin-bottom:28px; }
.bydshop-category-hero:after { content:""; position:absolute; width:360px; height:360px; right:-100px; bottom:-240px; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.02); }
.bydshop-category-hero__copy { position:relative; z-index:1; max-width:780px; }
.bydshop-eyebrow { display:block; color:#ff6870; font-size:11px; font-weight:800; letter-spacing:.18em; margin-bottom:14px; }
.bydshop-category-hero__title { color:#fff; margin:0 0 14px; font-size:clamp(30px,4vw,48px); line-height:1.08; font-weight:800; }
.bydshop-category-hero__description { color:#d5dee7; font-size:15px; line-height:1.7; max-width:760px; margin:0; }
.bydshop-category-hero__mark { position:relative; z-index:1; display:flex; flex-direction:column; align-items:flex-end; font-size:clamp(25px,3vw,42px); font-weight:900; letter-spacing:-.06em; white-space:nowrap; }
.bydshop-category-hero__mark span { color:#fff; }.bydshop-category-hero__mark b { color:#ed202b; }.bydshop-category-hero__mark small { color:#aebdcb; font-size:9px; letter-spacing:.2em; margin-top:5px; }
.bydshop-section-heading { display:flex; align-items:center; justify-content:space-between; margin:0 0 16px; }.bydshop-section-heading h2 { margin:0; font-size:22px; }
.bydshop-subcategories { margin:0 0 30px; }
.bydshop-subcategories ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0; padding:0; }
.bydshop-subcategories ul.products li.product-category { float:none; width:auto; margin:0; padding:16px; background:#fff; border:1px solid #e3e8ed; border-radius:14px; text-align:center; }
.bydshop-subcategories ul.products li.product-category img { width:100%; height:100px; object-fit:contain; margin:0 0 14px; }
.bydshop-subcategories ul.products li.product-category h2 { font-size:15px; margin:0; }
.bydshop-catalog-layout { display:grid; grid-template-columns:245px minmax(0,1fr); gap:24px; align-items:start; }
.bydshop-filter-panel { padding:20px; background:#fff; border:1px solid #e2e7ec; border-radius:14px; margin-bottom:18px; }
.bydshop-filter-panel h2 { margin:0 0 14px; font-size:18px; }.bydshop-filter-panel p,.bydshop-filter-panel__note { color:#647386; font-size:14px; line-height:1.55; }
.bydshop-filter-panel__button { display:block; text-align:center; padding:14px 14px; border-radius:6px; color:#fff!important; background:#ed202b; font-weight:800; text-decoration:none; margin:15px 0; }
.bydshop-filter-panel__note { border-top:1px solid #edf0f3; padding-top:14px; }
.bydshop-catalog-toolbar { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 16px; background:#fff; border:1px solid #e2e7ec; border-radius:14px; margin-bottom:18px; }
.bydshop-catalog-count { color:#667587; font-size:14px; }.bydshop-catalog-order .woocommerce-ordering { margin:0; }.bydshop-catalog-order select { padding:9px 30px 9px 14px; border:1px solid #d8dfe6; border-radius:6px; background:#fff; max-width:100%; }
.bydshop-catalog-results ul.products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:0; padding:0; }
.bydshop-catalog-results ul.products li.product { float:none!important; width:auto!important; margin:0!important; padding:16px; background:#fff; border:1px solid #e2e7ec; border-radius:14px; transition:transform .2s ease,box-shadow .2s ease; }
.bydshop-catalog-results ul.products li.product:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(16,29,43,.08); }
.bydshop-catalog-results ul.products li.product img { width:100%; height:190px; object-fit:contain; margin:0 0 14px; }
.bydshop-catalog-results ul.products li.product .woocommerce-loop-product__title { font-size:15px; line-height:1.45; color:#172536; padding:0; }
.bydshop-catalog-results ul.products li.product .price { color:#172536; font-weight:800; }.bydshop-catalog-results ul.products li.product .button { background:#ed202b; color:#fff; border-radius:6px; padding:11px 14px; }
.bydshop-pagination { margin-top:28px; }.bydshop-pagination .page-numbers { display:inline-flex; gap:8px; }
.bydshop-catalog .woocommerce-info,.bydshop-catalog .woocommerce-message { background:#fff; border-top-color:#ed202b; }
@media(max-width:1000px) { .bydshop-catalog-layout { grid-template-columns:214px minmax(0,1fr); gap:16px; }.bydshop-catalog-results ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); }.bydshop-subcategories ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .bydshop-catalog__inner { width:calc(100% - 28px); }.bydshop-category-hero { padding:24px; }.bydshop-category-hero__mark { display:none; }.bydshop-catalog-layout { grid-template-columns:1fr; }
.bydshop-catalog-sidebar { order:1; }
.bydshop-catalog-results { order:2; }
.bydshop-catalog-toolbar { align-items:flex-start; flex-direction:column; }.bydshop-catalog-order,.bydshop-catalog-order .woocommerce-ordering,.bydshop-catalog-order select { width:100%; }.bydshop-catalog-results ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.bydshop-catalog-results ul.products li.product { padding:14px; }.bydshop-catalog-results ul.products li.product img { height:135px; }.bydshop-subcategories ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:390px) { .bydshop-catalog-results ul.products { grid-template-columns:1fr; } }

/* Отключаем прокрутку на всех страницах кроме главной */

body:not(.home):not(front-page) .site-footer{
  scroll-snap-align: none !important;
}


/* BYDSHOP — оформление SEO-блока категории */
.bydshop-category-seo {
    position: relative;
    margin-top: 36px;
    padding: clamp(22px, 3.5vw, 38px);
    overflow: hidden;

    background: #fff;
    border: 1px solid #e2e7ec;
    border-radius: 14px;

    color: #526273;
    font-size: 14px;
    line-height: 1.8;
}

/* Красный акцент в верхней части */
.bydshop-category-seo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 3px;
    background: #ed202b;
}

/* Заголовки */
.bydshop-category-seo h2 {
    margin: 0 0 16px;
    color: #172536;
    font-size: clamp(16px, 2.2vw, 22px);
    line-height: 1.3;
    font-weight: 700;
}

.bydshop-category-seo h3 {
    margin: 26px 0 10px;
    color: #172536;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.bydshop-category-seo h4 {
    margin: 20px 0 8px;
    color: #172536;
    font-size: 16px;
    font-weight: 700;
}

/* Текст */
.bydshop-category-seo p {
    margin: 0 0 16px;
}

.bydshop-category-seo__content {
    color: #526273;
}

.bydshop-category-seo__content > *:last-child {
    margin-bottom: 0;
}

/* Списки */
.bydshop-category-seo ul,
.bydshop-category-seo ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.bydshop-category-seo li {
    margin-bottom: 7px;
    padding-left: 3px;
}

.bydshop-category-seo li::marker {
    color: #ed202b;
}

/* Ссылки */
.bydshop-category-seo a {
    color: #172536;
    font-weight: 600;
    text-decoration-color: #ed202b;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.bydshop-category-seo a:hover {
    color: #ed202b;
}

/* Разделители */
.bydshop-category-seo hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #e2e7ec;
}

/* Выделенный текст */
.bydshop-category-seo strong,
.bydshop-category-seo b {
    color: #172536;
    font-weight: 700;
}

/* Таблицы, если они есть в SEO-тексте */
.bydshop-category-seo table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    font-size: 13px;
}

.bydshop-category-seo th,
.bydshop-category-seo td {
    padding: 11px 13px;
    border: 1px solid #e2e7ec;
    text-align: left;
}

.bydshop-category-seo th {
    background: #f6f8fa;
    color: #172536;
    font-weight: 700;
}

/* Мобильные устройства */
@media (max-width: 700px) {
    .bydshop-category-seo {
        margin-top: 26px;
        padding: 22px 18px;
        border-radius: 11px;
        font-size: 14px;
        line-height: 1.7;
    }

    .bydshop-category-seo h2 {
        font-size: 22px;
    }

    .bydshop-category-seo h3 {
        margin-top: 22px;
        font-size: 17px;
    }

    .bydshop-category-seo table {
        display: block;
        overflow-x: auto;
    }
}

/* BYDSHOP — вертикальная красная полоса рядом с заголовком */
.bydshop-category-seo::before {
    display: none;
}

.bydshop-category-seo h2:first-child {
    position: relative;
    padding-left: 14px;
    border:none;
}

.bydshop-category-seo h2:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: #c93432;
    border-radius: 3px;
}

/* BYDSHOP — нижний информационный блок категории */
.bydshop-category-note {
    margin-top: 28px;
    padding: 18px 22px;
    background: #f7f8fa;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    color: #697586;
    font-size: 13px;
    line-height: 1.7;
}

.bydshop-category-note p {
    margin: 0 0 8px;
}

.bydshop-category-note p:last-child {
    margin-bottom: 0;
}

.bydshop-category-note strong {
    color: #263445;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .bydshop-category-note {
        margin-top: 20px;
        padding: 15px;
        font-size: 12px;
    }

    .bydshop-category-note strong {
        font-size: 13px;
    }
}


/* BYDSHOP — карточки подкатегорий в стиле каталога марок */

.bydshop-subcategories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 32px;
}

.bydshop-subcategories .bydshop-subcategory {
    position: relative;
    display: flex;
    min-height: 215px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, #1c3045, #0e1824);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    text-decoration: none;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bydshop-subcategories .bydshop-subcategory::before {
    position: absolute;
    z-index: -1;
    top: -38px;
    right: -32px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    content: "";
}

.bydshop-subcategories .bydshop-subcategory:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(16,29,43,.15);
}

.bydshop-subcategory__number {
    position: absolute;
    top: 18px;
    left: 22px;
    color: #b6c3d0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
}

.bydshop-subcategory__title {
    max-width: 100%;
    color: #fff;
    font-size: clamp(19px, 1.9vw, 25px);
    font-weight: 900;
    letter-spacing: .015em;
    overflow-wrap: anywhere;
}

.bydshop-subcategory__description {
    margin-top: 9px;
    color: #c7d2de;
    font-size: 11px;
    line-height: 1.45;
}

.bydshop-subcategory__arrow {
    position: absolute;
    right: 20px;
    bottom: 22px;
    color: #ed202b;
    font-size: 23px;
}

@media (max-width: 900px) {
    .bydshop-subcategories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .bydshop-subcategories {
        gap: 10px;
    }

    .bydshop-subcategories .bydshop-subcategory {
        min-height: 160px;
        padding: 17px;
    }

    .bydshop-subcategory__number {
        top: 13px;
        left: 16px;
    }

    .bydshop-subcategory__title {
        font-size: 19px;
    }

    .bydshop-subcategory__description {
        font-size: 10px;
    }

    .bydshop-subcategory__arrow {
        right: 13px;
        bottom: 14px;
    }
}


/* Карточки подкатегорий BYDSHOP */
.bydshop-subcategory {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 215px;
    padding: 24px;
    overflow: hidden;
    isolation: isolate;

    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #1c3045, #0e1824);
    border-radius: 7px;

    transition: transform .2s ease, box-shadow .2s ease;
}

/* Декоративный круг */
.bydshop-subcategory::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -38px;
    right: -32px;
    width: 170px;
    height: 170px;

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
}

/* Первая буква в круге */
.bydshop-subcategory__watermark {
    position: absolute;
    z-index: -1;
    top: 12px;
    right: 16px;
    color: rgba(255, 255, 255, .08);
    font-size: 82px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
    text-transform: uppercase;
    pointer-events: none;
}

/* Название категории */
.bydshop-subcategory__title {
    position: relative;
    z-index: 1;
    max-width: 100%;

    color: #fff;
    font-size: clamp(19px, 1.9vw, 25px);
    font-weight: 900;
    letter-spacing: .015em;
    overflow-wrap: anywhere;
}

/* Описание категории */
.bydshop-subcategory__description {
    position: relative;
    z-index: 1;
    margin-top: 9px;

    color: #c7d2de;
    font-size: 11px;
    line-height: 1.45;
}

/* Номер карточки */
.bydshop-subcategory__number {
    position: absolute;
    top: 18px;
    left: 22px;

    color: #b6c3d0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
}

/* Стрелка */
.bydshop-subcategory__arrow {
    position: absolute;
    right: 20px;
    bottom: 22px;

    color: #e53935;
    font-size: 23px;
}

/* Наведение */
.bydshop-subcategory:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(16, 29, 43, .15);
}

/* BYDSHOP — поиск в шапке */
.bydshop-header-search {
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    width: 100%;
    max-width: 350px;
    min-width: 190px;
    height: 38px;
    margin: 0;
    border: 1px solid rgba(217, 225, 234, .34);
    border-radius: 15px;
    background: transparent;
    overflow: visible;
    position: relative;
}

.bydshop-header-search:focus-within {
    border-color: rgba(217, 225, 234, .75);
}

.bydshop-header-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 12px;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    appearance: none;
}

.bydshop-header-search input[type="search"]::placeholder {
    color: #aebbc9;
    opacity: 1;
}

.bydshop-header-search button {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 100%;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d9e1ea;
    cursor: pointer;
    font-size: 25px;
}

.bydshop-header-search button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

/* Планшеты */
@media (max-width: 1050px) and (min-width: 761px) {
    .bydshop-header-search {
        flex-basis: 190px;
        min-width: 155px;
    }

    }

/* Телефоны */
@media (max-width: 760px) {
    .bydshop-header-search {
        order: 2;
        flex: 1 0 100%;
        max-width: none;
        min-width: 0;
        height: 40px;
    }
}



/* Название подкатегории ДОЛЖЕН БЫТЬ ТОЛЬКО В КОНЦЕ*/
.bydshop-subcategory__title {
    color: #fff;
}

/* Каждое слово */
.bydshop-subcategory__word {
    color: #fff;
    white-space: nowrap;
}

/* Первая буква каждого слова */
.bydshop-subcategory__initial {
    color: #e53935;
}

/* Контейнер строки поиска */
.bydshop-header-search {
    position: relative;
}


/* ==========================================
   BYDSHOP — выпадающий список поиска
   ========================================== */

.bydshop-header-search {
    position: relative;
    overflow: visible;
}

.bydshop-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 99999;
    width: 100%;
    min-width: 340px;
    max-height: 460px;
    overflow-y: auto;
    padding: 0;
    background: #fff;
    color: #20242a;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}

.bydshop-search-results[hidden] {
    display: none !important;
}

.bydshop-search-results:not([hidden]) {
    display: block;
}

/* Один товар */
.bydshop-search-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 14px 16px;
    color: #20242a;
    background: #fff;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.bydshop-search-result:hover {
    background: #f8f8f8;
}

/* Изображения скрыты */
.bydshop-search-result img {
    display: none !important;
}

/* Категория + подкатегория + название — одним шрифтом */
.bydshop-search-result__heading {
    display: block;
    width: 100%;
    color: #20242a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Артикул */
.bydshop-search-result__sku {
    color: #999;
    font-size: 11px;
    line-height: 1.4;
}

/* Цена: целое число без валюты */
.bydshop-search-result__price {
    color: #d71920;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

/* Состояния поиска */
.bydshop-search-message {
    padding: 14px 16px;
    color: #777;
    font-size: 13px;
}

/* Кнопка всех результатов */
.bydshop-search-all {
    display: block;
    padding: 14px 16px;
    color: #d71920;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid #eee;
}

.bydshop-search-all:hover {
    color: #a90000;
    background: #f8f8f8;
}

/* Мобильная версия */
@media (max-width: 760px) {
    .bydshop-search-results {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        max-height: 60vh;
    }

    .bydshop-search-result {
        padding: 12px;
    }

    .bydshop-search-result__heading {
        font-size: 12px;
    }

    .bydshop-search-all {
        padding: 13px 12px;
    }
}

.bydshop-search-result__modifications {
    display: block;
    width: 100%;
    color: #999;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ==========================================================
   BYDSHOP — горизонтальные карточки товаров WooCommerce
   Единый источник стилей каталога; категории: максимум 3 в ряд.
   ========================================================== */
body.tax-product_cat.woocommerce ul.products,
body.tax-product_cat.woocommerce-page ul.products,
body.post-type-archive-product.woocommerce ul.products,
body.post-type-archive-product.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.tax-product_cat.woocommerce ul.products::before,
body.tax-product_cat.woocommerce ul.products::after,
body.tax-product_cat.woocommerce-page ul.products::before,
body.tax-product_cat.woocommerce-page ul.products::after,
body.post-type-archive-product.woocommerce ul.products::before,
body.post-type-archive-product.woocommerce ul.products::after,
body.post-type-archive-product.woocommerce-page ul.products::before,
body.post-type-archive-product.woocommerce-page ul.products::after {
    display: none !important;
    content: none !important;
}

body.tax-product_cat.woocommerce ul.products li.product,
body.tax-product_cat.woocommerce-page ul.products li.product,
body.post-type-archive-product.woocommerce ul.products li.product,
body.post-type-archive-product.woocommerce-page ul.products li.product {
    display: grid !important;
    grid-template-columns: minmax(78px, 32%) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
        "image title"
        "image details"
        "image price"
        "image stock"
        "image cart";
    align-content: start;
    align-items: start;
    gap: 8px 14px;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box;
    background: radial-gradient(ellipse at 85% 15%, #334b61 0%, #182a3c 43%, #0b1521 100%) !important;
    border: 1px solid #d3deec !important;
    border-radius: 18px !important;
    box-shadow: 0 5px 18px rgba(28, 48, 75, .07);
    overflow: hidden;
    text-align: left !important;
}

/* Make the WooCommerce link transparent to the grid so image and title can be placed separately. */
body.tax-product_cat.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.tax-product_cat.woocommerce ul.products li.product > a.woocommerce-loop-product__link,
body.tax-product_cat.woocommerce-page ul.products li.product > a.woocommerce-LoopProduct-link,
body.tax-product_cat.woocommerce-page ul.products li.product > a.woocommerce-loop-product__link,
body.post-type-archive-product.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.post-type-archive-product.woocommerce ul.products li.product > a.woocommerce-loop-product__link,
body.post-type-archive-product.woocommerce-page ul.products li.product > a.woocommerce-LoopProduct-link,
body.post-type-archive-product.woocommerce-page ul.products li.product > a.woocommerce-loop-product__link {
    display: contents !important;
}

body.tax-product_cat.woocommerce ul.products li.product a img,
body.tax-product_cat.woocommerce-page ul.products li.product a img,
body.post-type-archive-product.woocommerce ul.products li.product a img,
body.post-type-archive-product.woocommerce-page ul.products li.product a img {
    grid-area: image;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    align-self: start;
    margin: 0 !important;
    /*padding: 8px;*/
    box-sizing: border-box;
    /*background: #f7f9fc;
    border-radius: 12px;*/
}

body.tax-product_cat.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    grid-area: title;
    min-width: 0;
    padding: 0 !important;
    margin: 0 0 2px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
}

body.tax-product_cat.woocommerce ul.products li.product .woocommerce-loop-product__title, 
body.tax-product_cat.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    grid-area: title;
    min-width: 0;
    padding: 0 !important;
    margin: 0 0 2px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
}

body.tax-product_cat.woocommerce ul.products li.product .bydshop-catalog-details,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-catalog-details,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-catalog-details,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-catalog-details {
    grid-area: details;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0 !important;
    color: #344456;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bydshop-catalog-details__row {
    display: flex;
    flex-wrap: wrap;
    column-gap: 4px;
    min-width: 0;
}
.bydshop-catalog-details__label { color: #aebdcd !important; font-size: 10px !important;}
.bydshop-catalog-details__value { color: #ffffff !important; font-size: 10px !important;}

body.tax-product_cat.woocommerce ul.products li.product .price,
body.tax-product_cat.woocommerce-page ul.products li.product .price,
body.post-type-archive-product.woocommerce ul.products li.product .price,
body.post-type-archive-product.woocommerce-page ul.products li.product .price {
    grid-area: price;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #FFF !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: right !important;
}

body.tax-product_cat.woocommerce ul.products li.product .price, 
body.tax-product_cat.woocommerce-page ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 400 !important;
}

/* Stock status generated by functions.php */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status {
    grid-area: stock;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0 !important;
    color: #13a65a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}
.bydshop-stock-status__icon {
    display: inline-flex;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;    box-sizing: border-box;
    /*border: 1.5px solid currentColor;
    border-radius: 50%;*/
    font-size: 20px;
    /*line-height: 1;*/
}
.bydshop-stock-status--onbackorder { color: #b7791f !important; }
.bydshop-stock-status--outofstock { color: #c62828 !important; }

body.tax-product_cat.woocommerce ul.products li.product a.add_to_cart_button,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_simple,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_variable,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_grouped,
body.tax-product_cat.woocommerce-page ul.products li.product a.add_to_cart_button,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_simple,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_variable,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_grouped,
body.post-type-archive-product.woocommerce ul.products li.product a.add_to_cart_button,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_simple,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_variable,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_grouped,
body.post-type-archive-product.woocommerce-page ul.products li.product a.add_to_cart_button,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_simple,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_variable,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_grouped {
    grid-area: cart;
    display: inline-flex !important;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 9px 10px !important;
    color: #fff !important;
    background: #e7192d !important;
    border: 0 !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-align: center;
}
body.tax-product_cat.woocommerce ul.products li.product a.add_to_cart_button:hover,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_simple:hover,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_variable:hover,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_grouped:hover,
body.tax-product_cat.woocommerce-page ul.products li.product a.add_to_cart_button:hover,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_simple:hover,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_variable:hover,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_grouped:hover,
body.post-type-archive-product.woocommerce ul.products li.product a.add_to_cart_button:hover,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_simple:hover,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_variable:hover,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_grouped:hover,
body.post-type-archive-product.woocommerce-page ul.products li.product a.add_to_cart_button:hover,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_simple:hover,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_variable:hover,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_grouped:hover {
    background: #c91225 !important;
}

/* Ratings are not part of the reference card and should not create an extra grid row. */
body.tax-product_cat.woocommerce ul.products li.product .star-rating,
body.tax-product_cat.woocommerce-page ul.products li.product .star-rating,
body.post-type-archive-product.woocommerce ul.products li.product .star-rating,
body.post-type-archive-product.woocommerce-page ul.products li.product .star-rating {
    display: none !important;
}

body.tax-product_cat.woocommerce ul.products li.product .onsale,
body.tax-product_cat.woocommerce-page ul.products li.product .onsale,
body.post-type-archive-product.woocommerce ul.products li.product .onsale,
body.post-type-archive-product.woocommerce-page ul.products li.product .onsale {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    min-height: 0 !important;
    border-radius: 6px !important;
    background: #e7192d !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

@media (max-width: 1100px) {
    body.tax-product_cat.woocommerce ul.products,
    body.tax-product_cat.woocommerce-page ul.products,
    body.post-type-archive-product.woocommerce ul.products,
    body.post-type-archive-product.woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    body.tax-product_cat.woocommerce ul.products,
    body.tax-product_cat.woocommerce-page ul.products,
    body.post-type-archive-product.woocommerce ul.products,
    body.post-type-archive-product.woocommerce-page ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
    body.tax-product_cat.woocommerce ul.products li.product,
    body.tax-product_cat.woocommerce-page ul.products li.product,
    body.post-type-archive-product.woocommerce ul.products li.product,
    body.post-type-archive-product.woocommerce-page ul.products li.product {
        grid-template-columns: minmax(88px, 30%) minmax(0, 1fr);
        gap: 7px 12px;
        padding: 12px !important;
        border-radius: 13px !important;
    }
    body.tax-product_cat.woocommerce ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_cat.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
    body.post-type-archive-product.woocommerce ul.products li.product .woocommerce-loop-product__title,
    body.post-type-archive-product.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
        font-size: 15px !important;
    }
    body.tax-product_cat.woocommerce ul.products li.product .bydshop-catalog-details,
    body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-catalog-details,
    body.post-type-archive-product.woocommerce ul.products li.product .bydshop-catalog-details,
    body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-catalog-details {
        font-size: 11px;
    }
    body.tax-product_cat.woocommerce ul.products li.product .price,
    body.tax-product_cat.woocommerce-page ul.products li.product .price,
    body.post-type-archive-product.woocommerce ul.products li.product .price,
    body.post-type-archive-product.woocommerce-page ul.products li.product .price {
        font-size: 21px !important;
    }
}

/* ==========================================================
   BYDSHOP — исправленная раскладка карточки по образцу
   Сохраняет ширину карточек и сетку каталога из 3 колонок.
   ========================================================== */

/* Карточка: изображение слева, сведения справа, действия — общей строкой снизу. */
body.tax-product_cat.woocommerce ul.products li.product,
body.tax-product_cat.woocommerce-page ul.products li.product,
body.post-type-archive-product.woocommerce ul.products li.product,
body.post-type-archive-product.woocommerce-page ul.products li.product {
    grid-template-rows: auto auto auto auto auto !important;
    grid-template-areas:
        "image title"
        "image details"
        "image price"
        "image stock"
        "actions actions" !important;
    position: relative;
}

/* Цена без разделителей и лишнего верхнего отступа. */
body.tax-product_cat.woocommerce ul.products li.product .price,
body.tax-product_cat.woocommerce-page ul.products li.product .price,
body.post-type-archive-product.woocommerce ul.products li.product .price,
body.post-type-archive-product.woocommerce-page ul.products li.product .price {
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.tax-product_cat.woocommerce ul.products li.product hr,
body.tax-product_cat.woocommerce-page ul.products li.product hr,
body.post-type-archive-product.woocommerce ul.products li.product hr,
body.post-type-archive-product.woocommerce-page ul.products li.product hr {
    display: none !important;
}

/* Статус наличия и круглая галочка — зелёные. */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status--instock,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status--instock,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status--instock,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status--instock {
    color: #16a765 !important;
}
body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status--instock .bydshop-stock-status__icon,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status--instock .bydshop-stock-status__icon,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status--instock .bydshop-stock-status__icon,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status--instock .bydshop-stock-status__icon {
    color: #16a765 !important;
    border-color: #16a765 !important;
}

/* Кнопка корзины занимает почти всю нижнюю строку; больше не перекрывает цену. */
body.tax-product_cat.woocommerce ul.products li.product a.add_to_cart_button,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_simple,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_variable,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_grouped,
body.tax-product_cat.woocommerce-page ul.products li.product a.add_to_cart_button,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_simple,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_variable,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_grouped,
body.post-type-archive-product.woocommerce ul.products li.product a.add_to_cart_button,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_simple,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_variable,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_grouped,
body.post-type-archive-product.woocommerce-page ul.products li.product a.add_to_cart_button,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_simple,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_variable,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_grouped {
    grid-area: actions !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100% - 58px) !important;
    min-width: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #e7192d !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

body.tax-product_cat.woocommerce ul.products li.product a.add_to_cart_button, 
body.tax-product_cat.woocommerce ul.products li.product a.product_type_simple,
body.tax-product_cat.woocommerce ul.products li.product a.add_to_cart_button, 
body.tax-product_cat.woocommerce ul.products li.product a.product_type_simple {
    grid-area: actions !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100% - 40px) !important;
    min-width: 0 !important;
    min-height: 20px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #e7192d !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* TI WooCommerce Wishlist: сердечко в той же нижней строке справа. */
body.tax-product_cat.woocommerce ul.products li.product .tinv-wraper.tinv-wishlist,
body.tax-product_cat.woocommerce-page ul.products li.product .tinv-wraper.tinv-wishlist,
body.post-type-archive-product.woocommerce ul.products li.product .tinv-wraper.tinv-wishlist,
body.post-type-archive-product.woocommerce-page ul.products li.product .tinv-wraper.tinv-wishlist {
    position: absolute !important;
    right: 16px !important;
    bottom: 16px !important;
    display: block !important;
    width: 46px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2 !important;
}
body.tax-product_cat.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button,
body.tax-product_cat.woocommerce-page ul.products li.product .tinvwl_add_to_wishlist_button,
body.post-type-archive-product.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button,
body.post-type-archive-product.woocommerce-page ul.products li.product .tinvwl_add_to_wishlist_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    /*min-width: 46px !important;
    height: 44px !important;*/
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #c8d6e8 !important;
    border-radius: 12px !important;
    /*background: #edf3fb !important;*/
    color: #e7192d !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
body.tax-product_cat.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
body.tax-product_cat.woocommerce-page ul.products li.product .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
body.post-type-archive-product.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
body.post-type-archive-product.woocommerce-page ul.products li.product .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text {
    display: none !important;
}
body.tax-product_cat.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button::before,
body.tax-product_cat.woocommerce-page ul.products li.product .tinvwl_add_to_wishlist_button::before,
body.post-type-archive-product.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button::before,
body.post-type-archive-product.woocommerce-page ul.products li.product .tinvwl_add_to_wishlist_button::before {
    color: #e7192d !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Совместимость с другой распространённой обёрткой избранного. */
body.tax-product_cat.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
body.tax-product_cat.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist,
body.post-type-archive-product.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
body.post-type-archive-product.woocommerce-page ul.products li.product .yith-wcwl-add-to-wishlist {
    position: absolute !important;
    right: 16px !important;
    bottom: 16px !important;
    width: 46px !important;
    min-height: 44px !important;
    margin: 0 !important;
    z-index: 2 !important;
}

/* ==========================================================
   BYDSHOP — финальная полировка статуса и цены
   Не меняет размер карточек, сетку и расположение кнопок.
   ========================================================== */

/* Убираем возможные линии/псевдоразделители непосредственно перед ценой. */
body.tax-product_cat.woocommerce ul.products li.product .price::before,
body.tax-product_cat.woocommerce ul.products li.product .price::after,
body.tax-product_cat.woocommerce-page ul.products li.product .price::before,
body.tax-product_cat.woocommerce-page ul.products li.product .price::after,
body.post-type-archive-product.woocommerce ul.products li.product .price::before,
body.post-type-archive-product.woocommerce ul.products li.product .price::after,
body.post-type-archive-product.woocommerce-page ul.products li.product .price::before,
body.post-type-archive-product.woocommerce-page ul.products li.product .price::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.tax-product_cat.woocommerce ul.products li.product .price,
body.tax-product_cat.woocommerce-page ul.products li.product .price,
body.post-type-archive-product.woocommerce ul.products li.product .price,
body.post-type-archive-product.woocommerce-page ul.products li.product .price {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Наличие: зелёный текст и аккуратная круглая галочка. */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status--instock,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status--instock,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status--instock,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status--instock {
    color: #16a765 !important;
    font-weight: 400 !important;
}

body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status--instock .bydshop-stock-status__icon,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status--instock .bydshop-stock-status__icon,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status--instock .bydshop-stock-status__icon,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status--instock .bydshop-stock-status__icon {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
    border: 1.5px solid #16a765 !important;
    border-radius: 50% !important;
    color: #16a765 !important;
    background: transparent !important;
    font-size: 7px !important;
}

/* Под заказ: сохраняем янтарный цвет, делаем значок визуально чище. */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status--onbackorder,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status--onbackorder,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status--onbackorder,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status--onbackorder {
    color: #a8752a !important;
    font-weight: 600 !important;
}

body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status--onbackorder .bydshop-stock-status__icon,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status--onbackorder .bydshop-stock-status__icon,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status--onbackorder .bydshop-stock-status__icon,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status--onbackorder .bydshop-stock-status__icon {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
    /*border: 1.5px solid #c49a5a !important;
    border-radius: 50% !important;*/
    color: #a8752a !important;
    background: transparent !important;
    /*font-size: 7px !important;*/
}

.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before {
    margin-right: 0px !important;
}


/* Белая SVG-иконка в кнопке «В корзину» */
.woocommerce ul.products li.product a.add_to_cart_button::before,
.woocommerce ul.products li.product a.ajax_add_to_cart::before {
    content: "";
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-right: 8px;
    vertical-align: -4px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* ==========================================================
   BYDSHOP — обновление карточки товара по последнему макету
   ========================================================== */

/* Фото: белая высокая область сохраняется; картинка масштабируется
   по высоте, лишняя ширина аккуратно обрезается по бокам. */
body.tax-product_cat.woocommerce ul.products li.product a img,
body.tax-product_cat.woocommerce-page ul.products li.product a img,
body.post-type-archive-product.woocommerce ul.products li.product a img,
body.post-type-archive-product.woocommerce-page ul.products li.product a img {
    /*width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    justify-self: center !important;
    align-self: stretch !important;
    padding: 3px !important;
    box-sizing: border-box !important;
    background: #e5e6e8 !important;
    border: 2px solid #fff !important;
    border-radius: 12px !important;*/
    width: 100% !important;
    height: 180px !important;
    object-fit: contain;
    object-position: center top;
    display: block;
    margin: 0 auto;
}

/* Тонкая разделительная полоса над статусом наличия.
   Псевдоэлемент не добавляет новую строку CSS Grid. */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /*padding-top: 10px !important;
    margin-top: 2px !important;*/
}

/*body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status::before,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status::before,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status::before,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: rgba(220, 230, 240, .35) !important;
}*/

/* Кнопки внизу одной строкой: корзина + избранное одинаковой высоты. */
body.tax-product_cat.woocommerce ul.products li.product a.add_to_cart_button,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_simple,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_variable,
body.tax-product_cat.woocommerce ul.products li.product a.product_type_grouped,
body.tax-product_cat.woocommerce-page ul.products li.product a.add_to_cart_button,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_simple,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_variable,
body.tax-product_cat.woocommerce-page ul.products li.product a.product_type_grouped,
body.post-type-archive-product.woocommerce ul.products li.product a.add_to_cart_button,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_simple,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_variable,
body.post-type-archive-product.woocommerce ul.products li.product a.product_type_grouped,
body.post-type-archive-product.woocommerce-page ul.products li.product a.add_to_cart_button,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_simple,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_variable,
body.post-type-archive-product.woocommerce-page ul.products li.product a.product_type_grouped {
    min-height: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Сердечко: такой же габарит и уровень, что и у корзины. */
body.tax-product_cat.woocommerce ul.products li.product .tinv-wraper.tinv-wishlist,
body.tax-product_cat.woocommerce-page ul.products li.product .tinv-wraper.tinv-wishlist,
body.post-type-archive-product.woocommerce ul.products li.product .tinv-wraper.tinv-wishlist,
body.post-type-archive-product.woocommerce-page ul.products li.product .tinv-wraper.tinv-wishlist {
    right: 16px !important;
    bottom: 16px !important;
    width: 30px !important;
    height: 30px !important;
}

body.tax-product_cat.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button,
body.tax-product_cat.woocommerce-page ul.products li.product .tinvwl_add_to_wishlist_button,
body.post-type-archive-product.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button,
body.post-type-archive-product.woocommerce-page ul.products li.product .tinvwl_add_to_wishlist_button {
    width: 30px !important;
    min-width: 30px !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 10px !important;
}

/* Корзина справа от надписи «В корзину». */
.woocommerce ul.products li.product a.add_to_cart_button::before,
.woocommerce ul.products li.product a.ajax_add_to_cart::before {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product a.add_to_cart_button::after,
.woocommerce ul.products li.product a.ajax_add_to_cart::after {
    content: "";
    display: inline-block;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-left: 8px;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* BYDSHOP — отдельная строка разделителя в карточке товара */

body.tax-product_cat.woocommerce ul.products li.product,
body.tax-product_cat.woocommerce-page ul.products li.product,
body.post-type-archive-product.woocommerce ul.products li.product,
body.post-type-archive-product.woocommerce-page ul.products li.product {
    grid-template-rows: auto auto auto auto auto auto !important;
    grid-template-areas:
        "image title"
        "image details"
        "image price"
        "image stock"
        "divider divider"
        "actions actions" !important;
}

body.tax-product_cat.woocommerce ul.products li.product .bydshop-card-divider,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-card-divider,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-card-divider,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-card-divider {
    grid-area: divider !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 7px !important;
    padding: 0 !important;
    background: rgba(220, 230, 240, .55) !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

/* BYDSHOP — таблица атрибутов товара */

body.tax-product_cat.woocommerce ul.products li.product .bydshop-catalog-details,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-catalog-details,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-catalog-details,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-catalog-details {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    /*border-spacing: 0 5px !important;*/
    margin: 0 !important;
    font-size: 10px !important;
    /*line-height: 1.4 !important;*/
}

body.tax-product_cat.woocommerce ul.products li.product .bydshop-catalog-details__row,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-catalog-details__row,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-catalog-details__row,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-catalog-details__row {
    display: table-row !important;
}

body.tax-product_cat.woocommerce ul.products li.product .bydshop-catalog-details__label,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-catalog-details__label,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-catalog-details__label,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-catalog-details__label {
    display: table-cell !important;
    width: 50% !important;
    padding: 0px 0px 2px 0px !important;
    color: #aebdcd !important;
    text-align: left !important;
    vertical-align: top !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

body.tax-product_cat.woocommerce ul.products li.product .bydshop-catalog-details__value,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-catalog-details__value,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-catalog-details__value,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-catalog-details__value {
    display: table-cell !important;
    width: 58% !important;
    padding: 2px 0 2px 8px !important;
    color: #ffffff !important;
    text-align: left !important;
    vertical-align: top !important;
    overflow-wrap: anywhere !important;
}


* ==========================================
   BYDSHOP — карточки «Похожие товары»
   Полностью повторяем дизайн карточек каталога
   ========================================== */

/* Сетка похожих товаров */
.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Убираем служебные псевдоэлементы WooCommerce */
.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
    display: none !important;
    content: none !important;
}

/* Основная карточка */
.single-product .related.products ul.products li.product {
    display: grid !important;
    grid-template-columns: minmax(78px, 32%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto auto auto !important;
    grid-template-areas:
        "image title"
        "image details"
        "image price"
        "image stock"
        "divider divider"
        "actions actions" !important;
    align-content: start;
    align-items: start;
    gap: 8px 14px !important;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box;
    background: radial-gradient(
        ellipse at 85% 15%,
        #334b61 0%,
        #182a3c 43%,
        #0b1521 100%
    ) !important;
    border: 1px solid #d3deec !important;
    border-radius: 18px !important;
    box-shadow: 0 5px 18px rgba(28, 48, 75, .07);
    overflow: hidden;
    text-align: left !important;
}

/* Ссылка WooCommerce не должна мешать сетке */
.single-product .related.products ul.products li.product > a.woocommerce-LoopProduct-link,
.single-product .related.products ul.products li.product > a.woocommerce-loop-product__link {
    display: contents !important;
}

/* Изображение */
.single-product .related.products ul.products li.product a img {
    grid-area: image;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    align-self: start;
    margin: 0 !important;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Название */
.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
    grid-area: title;
    min-width: 0;
    padding: 0 !important;
    margin: 0 0 2px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
}

/* Характеристики */
.single-product .related.products ul.products li.product .bydshop-catalog-details {
    grid-area: details;
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
    margin: 0 !important;
    color: #fff;
    font-size: 10px !important;
    line-height: 1.4 !important;
}

.single-product .related.products ul.products li.product .bydshop-catalog-details__row {
    display: table-row !important;
}

.single-product .related.products ul.products li.product .bydshop-catalog-details__label {
    display: table-cell !important;
    width: 50% !important;
    padding: 0 0 2px !important;
    color: #aebdcd !important;
    text-align: left !important;
    vertical-align: top !important;
    overflow-wrap: break-word !important;
}

.single-product .related.products ul.products li.product .bydshop-catalog-details__value {
    display: table-cell !important;
    width: 58% !important;
    padding: 2px 0 2px 8px !important;
    color: #fff !important;
    text-align: left !important;
    vertical-align: top !important;
    overflow-wrap: anywhere !important;
}

/* Цена */
.single-product .related.products ul.products li.product .price {
    grid-area: price;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: right !important;
}

/* Наличие */
.single-product .related.products ul.products li.product .bydshop-stock-status {
    grid-area: stock;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0 !important;
    color: #13a65a !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}



/* Кнопка покупки */
.single-product .related.products ul.products li.product a.add_to_cart_button,
.single-product .related.products ul.products li.product a.product_type_simple,
.single-product .related.products ul.products li.product a.product_type_variable,
.single-product .related.products ul.products li.product a.product_type_grouped {
    grid-area: actions;
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 5px 12px !important;
    color: #fff !important;
    background: #e7192d !important;
    border: 0 !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    text-align: center;
}

.single-product .related.products ul.products li.product a.add_to_cart_button:hover,
.single-product .related.products ul.products li.product a.product_type_simple:hover,
.single-product .related.products ul.products li.product a.product_type_variable:hover,
.single-product .related.products ul.products li.product a.product_type_grouped:hover {
    background: #c91225 !important;
}

/* Заголовок блока */
.single-product .related.products > h2 {
    margin: 0 0 22px;
    color: #172536;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
}

/* Планшеты и телефоны */
@media (max-width: 760px) {
    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 13px !important;
    }

    .single-product .related.products ul.products li.product {
        padding: 12px !important;
        grid-template-columns: minmax(65px, 30%) minmax(0, 1fr) !important;
        gap: 7px 10px !important;
    }

    .single-product .related.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
    }

    .single-product .related.products ul.products li.product a img {
        height: 100% !important;
    }
}

/* Очень узкие экраны */
@media (max-width: 390px) {
    .single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* BYDSHOP — сетка похожих товаров */

/* Убираем служебные элементы WooCommerce */
.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
    display: none !important;
    content: none !important;
}

/* Большие экраны — 4 карточки в ряд */
.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.single-product .related.products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Ноутбуки — 3 карточки */
@media (max-width: 1100px) {
    .single-product .related.products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .single-product .related.products ul.products li.product:nth-child(n+4) {
        display: none !important;
    }
}

/* Планшеты — 2 карточки */
@media (max-width: 760px) {
    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .single-product .related.products ul.products li.product:nth-child(n+3) {
        display: none !important;
    }
}

/* Узкие телефоны — 1 карточка */
@media (max-width: 390px) {
    .single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
    }

    .single-product .related.products ul.products li.product:nth-child(n+2) {
        display: none !important;
    }
}

/* BYDSHOP — возвращаем горизонтальный дизайн карточек в блоке Похожие */

/* Внутренняя структура карточки */
.single-product .related.products ul.products li.product {
    display: grid !important;
    grid-template-columns: minmax(75px, 32%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto !important;
    grid-template-areas:
    "image title"
    "image details"
    "image price"
    "image stock"
    "spacer spacer"
    "bottom bottom" !important;
    align-content: stretch !important;
    align-items: start !important;
    gap: 8px 12px !important;
    padding: 12px !important;
    background: radial-gradient(
        ellipse at 85% 15%,
        #334b61 0%,
        #182a3c 43%,
        #0b1521 100%
    ) !important;
    border: 1px solid #d3deec !important;
    border-radius: 13px !important;
    overflow: hidden !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

/* Ссылка товара не должна объединять изображение и текст */
.single-product .related.products li.product > a.woocommerce-LoopProduct-link,
.single-product .related.products li.product > a.woocommerce-loop-product__link {
    display: contents !important;
}

/* Изображение слева */
.single-product .related.products li.product a img {
    grid-area: image !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    margin: 0 !important;
    align-self: start !important;
}

/* Название справа */
.single-product .related.products li.product .woocommerce-loop-product__title {
    grid-area: title !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Характеристики справа */
.single-product .related.products li.product .bydshop-catalog-details {
    grid-area: details !important;
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
}

.single-product .related.products li.product .bydshop-catalog-details__row {
    display: table-row !important;
}

.single-product .related.products li.product .bydshop-catalog-details__label,
.single-product .related.products li.product .bydshop-catalog-details__value {
    display: table-cell !important;
    width: 50% !important;
    padding: 2px 3px !important;
    vertical-align: top !important;
    overflow-wrap: anywhere !important;}

.single-product .related.products li.product .bydshop-catalog-details__label {
    color: #aebdcd !important;
}

.single-product .related.products li.product .bydshop-catalog-details__value {
    color: #fff !important;
}

/* Цена справа */
.single-product .related.products li.product .price {
    grid-area: price !important;
    color: #e7192d !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* Наличие справа */
.single-product .related.products li.product .bydshop-stock-status {
    grid-area: stock !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #13a65a !important;
    font-size: 11px !important;
    margin: 0 !important;
}



/* Корзина под разделителем */
.single-product .related.products li.product a.add_to_cart_button,
.single-product .related.products li.product a.product_type_simple,
.single-product .related.products li.product a.product_type_variable,
.single-product .related.products li.product a.product_type_grouped {
    grid-area: actions !important;
    display: inline-flex !important;
    width: 100% !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    background: #e7192d !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* Убираем избранное */
.single-product .related.products .tinv-wraper,
.single-product .related.products .tinvwl_add_to_wishlist_button {
    display: none !important;
}

/* BYDSHOP — общий нижний блок карточки похожего товара */

.single-product .related.products ul.products {
    align-items: stretch !important;
}

.single-product .related.products ul.products li.product {
    align-content: stretch !important;
}

/* Общий контейнер разделителя и корзины */
.single-product .related.products li.product .bydshop-card-bottom {
    grid-area: bottom !important;
    align-self: end !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Разделительная линия */
.single-product .related.products li.product .bydshop-card-bottom .bydshop-card-divider {
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(220, 230, 240, .65) !important;
    border: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Кнопка корзины внутри общего блока */
.single-product .related.products li.product .bydshop-card-bottom a.add_to_cart_button,
.single-product .related.products li.product .bydshop-card-bottom a.product_type_simple,
.single-product .related.products li.product .bydshop-card-bottom a.product_type_variable,
.single-product .related.products li.product .bydshop-card-bottom a.product_type_grouped {
    width: 100% !important;
    margin: 0 !important;
}


/* Кнопка корзины */
.single-product .related.products ul.products li.product a.add_to_cart_button,
.single-product .related.products ul.products li.product a.product_type_simple,
.single-product .related.products ul.products li.product a.product_type_variable,
.single-product .related.products ul.products li.product a.product_type_grouped {
    grid-area: actions !important;
    align-self: start !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 36px !important;
}


/* BYDSHOP — нижний блок карточек каталога */

/* Карточки растягиваются по высоте в пределах своего ряда */
body.tax-product_cat.woocommerce ul.products,
body.tax-product_cat.woocommerce-page ul.products,
body.post-type-archive-product.woocommerce ul.products,
body.post-type-archive-product.woocommerce-page ul.products {
    align-items: stretch !important;
}

/* Добавляем свободную строку перед нижним блоком */
body.tax-product_cat.woocommerce ul.products li.product,
body.tax-product_cat.woocommerce-page ul.products li.product,
body.post-type-archive-product.woocommerce ul.products li.product,
body.post-type-archive-product.woocommerce-page ul.products li.product {
    grid-template-rows:
        auto auto auto auto minmax(0, 1fr) auto !important;

    grid-template-areas:
        "image title"
        "image details"
        "image price"
        "image stock"
        "image spacer"
        "image bottom" !important;

    align-content: stretch !important;
}

/* BYDSHOP — нижний блок на всю ширину карточки */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-card-bottom,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-card-bottom,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-card-bottom,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-card-bottom {
    grid-area: bottom !important;
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: end !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Разделитель */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-card-divider,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-card-divider,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-card-divider,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-card-divider {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    background: rgba(220, 230, 240, .65) !important;
    border: 0 !important;
}

/* Кнопка корзины */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-card-bottom a.add_to_cart_button,
body.tax-product_cat.woocommerce ul.products li.product .bydshop-card-bottom a.product_type_simple,
body.tax-product_cat.woocommerce ul.products li.product .bydshop-card-bottom a.product_type_variable,
body.tax-product_cat.woocommerce ul.products li.product .bydshop-card-bottom a.product_type_grouped,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-card-bottom a.add_to_cart_button,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-card-bottom a.product_type_simple,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-card-bottom a.product_type_variable,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-card-bottom a.product_type_grouped,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-card-bottom a.add_to_cart_button,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-card-bottom a.product_type_simple,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-card-bottom a.product_type_variable,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-card-bottom a.product_type_grouped,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-card-bottom a.add_to_cart_button,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-card-bottom a.product_type_simple,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-card-bottom a.product_type_variable,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-card-bottom a.product_type_grouped {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
}


/* BYDSHOP — единое оформление названий товаров во всём магазине */

/* Категории, каталог, похожие товары и другие карточки WooCommerce */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;

    height: 2.6em !important;
    min-height: 2.6em !important;
    max-height: 2.6em !important;

    overflow: hidden !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-overflow: ellipsis !important;
}

/* Выпадающие результаты поиска BYDSHOP */
.bydshop-search-result__heading {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;

    max-height: 3em !important;
    overflow: hidden !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
    text-overflow: ellipsis !important;
}

/* BYDSHOP — меняем местами статус и цену в карточках каталога */

/* Карточки категорий */
body.tax-product_cat.woocommerce ul.products li.product .bydshop-stock-status,
body.tax-product_cat.woocommerce-page ul.products li.product .bydshop-stock-status,
body.post-type-archive-product.woocommerce ul.products li.product .bydshop-stock-status,
body.post-type-archive-product.woocommerce-page ul.products li.product .bydshop-stock-status {
    grid-area: price !important;
}

body.tax-product_cat.woocommerce ul.products li.product .price,
body.tax-product_cat.woocommerce-page ul.products li.product .price,
body.post-type-archive-product.woocommerce ul.products li.product .price,
body.post-type-archive-product.woocommerce-page ul.products li.product .price {
    grid-area: stock !important;
}

/* Карточки похожих товаров */
.single-product .related.products li.product .bydshop-stock-status {
    grid-area: price !important;
}

.single-product .related.products li.product .price {
    grid-area: stock !important;
}

/* BYDSHOP — адаптация отдельной страницы товара для мобильных устройств */

@media (max-width: 767px) {

    /* Основная карточка товара: фото сверху, информация ниже */
    .single-product div.product.bydshop-single-product {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
        padding: 16px !important;
        margin-bottom: 22px !important;
        border-radius: 12px;
    }

    /* Галерея */
    .single-product .bydshop-single-product .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
    }

    .single-product .bydshop-single-product .woocommerce-product-gallery__image img {
        height: clamp(230px, 70vw, 350px) !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    /* Информация о товаре */
    .single-product .bydshop-single-product .summary {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .single-product .bydshop-single-product .product_title {
        font-size: 23px !important;
        line-height: 1.3 !important;
        margin-bottom: 14px !important;
        overflow-wrap: anywhere;
    }

    .single-product .bydshop-single-product .summary p.price,
    .single-product .bydshop-single-product .summary span.price {
        font-size: 26px !important;
    }

    /* Описание и доставка: каждый блок на всю ширину */
    .single-product .bydshop-product-information {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        margin-bottom: 28px !important;
    }

    .single-product .bydshop-info-panel {
        width: 100% !important;
        min-width: 0 !important;
        padding: 18px !important;
        box-sizing: border-box !important;
    }

    .single-product .bydshop-info-panel h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .single-product .bydshop-info-panel p {
        overflow-wrap: break-word;
    }

}

/* BYDSHOP — похожие товары: мобильная версия */

@media (max-width: 760px) {

    /* Две карточки одна под другой */
    .single-product .related.products ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    /* Каждая карточка на всю ширину */
    .single-product .related.products ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Показываем только две карточки */
    .single-product .related.products ul.products li.product:nth-child(n+3) {
        display: grid !important;
    }

    /* Изображение и информация остаются горизонтально */
    .single-product .related.products ul.products li.product {
        grid-template-columns: minmax(90px, 30%) minmax(0, 1fr) !important;
    }

}

/* =====================================================
   BYDSHOP — оформление отдельной страницы товара
   Этап 1: акценты, избранное, бренд и категория
   ===================================================== */

.single-product .bydshop-single-product .summary {
    padding: 24px;
    background: #f5f6f7;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    box-sizing: border-box;
}

/* Название товара */
.single-product .bydshop-single-product .product_title {
    color: #25282d !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px;
    padding-bottom: 16px;
    border-bottom: 2px solid #25282d;
}

/* Цена */
.single-product .bydshop-single-product .summary p.price,
.single-product .bydshop-single-product .summary span.price {
    display: block;
    color: #c93432 !important;
    font-size: clamp(28px, 2.5vw, 36px) !important;
    font-weight: 900 !important;
    margin: 20px 0 !important;
}

/* Наличие */
.single-product .bydshop-single-product .summary .stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: #e7f3eb;
    border: 1px solid #c9e4d1;
    border-radius: 20px;
    color: #237443 !important;
    font-size: 14px;
    font-weight: 700;
}

/* Кнопка добавления в корзину */
.single-product .bydshop-single-product .single_add_to_cart_button {
    background: #c93432 !important;
    border: 1px solid #c93432 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 800 !important;
    min-height: 50px;
    transition: background .2s ease, transform .2s ease;
}

.single-product .bydshop-single-product .single_add_to_cart_button:hover {
    background: #a92322 !important;
    border-color: #a92322 !important;
    transform: translateY(-1px);
}

/* Избранное — TI WooCommerce Wishlist */
.single-product .bydshop-single-product .summary .tinv-wraper {
    margin: 12px 0 16px !important;
}

.single-product .bydshop-single-product .summary .tinvwl_add_to_wishlist_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 16px !important;
    background: #fff !important;
    border: 1px solid #d8b8b8 !important;
    border-radius: 10px !important;
    color: #c93432 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease;
}

.single-product .bydshop-single-product .summary .tinvwl_add_to_wishlist_button:hover {
    background: #fff0f0 !important;
    border-color: #c93432 !important;
}

.single-product .bydshop-single-product .summary .tinvwl_add_to_wishlist_button::before {
    color: #c93432 !important;
    font-size: 19px !important;
}

/* Категория, артикул и другие метаданные */
.single-product .bydshop-single-product .product_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #d9dde2;
    color: #59616b;
    font-size: 13px;
}

.single-product .bydshop-single-product .product_meta > span {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.single-product .bydshop-single-product .product_meta a {
    display: inline-block;
    padding: 5px 10px;
    background: #25282d;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.single-product .bydshop-single-product .product_meta a:hover {
    background: #c93432;
}

/* Мобильная версия */
max-width: 767px {
    .single-product .bydshop-single-product .summary {
        padding: 17px;
        border-radius: 12px;
    }

    .single-product .bydshop-single-product .product_title {
        font-size: 22px !important;
    }

    .single-product .bydshop-single-product .product_meta {
        gap: 8px;
    }
}

/* =====================================================
   BYDSHOP — оформление отдельной страницы товара
   Этап 1: акценты, избранное, бренд и категория


================================================ */

.single-product .bydshop-single-product .summary {
    padding: 24px;
    background: #f5f6f7;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    box-sizing: border-box;
}

/* Название товара */
.single-product .bydshop-single-product .product_title {
    color: #25282d !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px;
    padding-bottom: 16px;
    border-bottom: 2px solid #25282d;
}

/* Цена */
.single-product .bydshop-single-product .summary p.price,
.single-product .bydshop-single-product .summary span.price {
    display: block;
    color: #c93432 !important;
    font-size: clamp(28px, 2.5vw, 36px) !important;
    font-weight: 900 !important;
    margin: 20px 0 !important;
}

/* Наличие */
.single-product .bydshop-single-product .summary .stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: #e7f3eb;
    border: 1px solid #c9e4d1;
    border-radius: 20px;
    color: #237443 !important;
    font-size: 14px;
    font-weight: 700;
}

/* Кнопка добавления в корзину */
.single-product .bydshop-single-product .single_add_to_cart_button {
    background: #c93432 !important;
    border: 1px solid #c93432 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 800 !important;
    min-height: 50px;
    transition: background .2s ease, transform .2s ease;
}

.single-product .bydshop-single-product .single_add_to_cart_button:hover {
    background: #a92322 !important;
    border-color: #a92322 !important;
    transform: translateY(-1px);
}

/* Избранное — TI WooCommerce Wishlist */
.single-product .bydshop-single-product .summary .tinv-wraper {
    margin: 12px 0 16px !important;
}

.single-product .bydshop-single-product .summary .tinvwl_add_to_wishlist_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 16px !important;
    background: #fff !important;
    border: 1px solid #d8b8b8 !important;
    border-radius: 10px !important;
    color: #c93432 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease;
}

.single-product .bydshop-single-product .summary .tinvwl_add_to_wishlist_button:hover {
    background: #fff0f0 !important;
    border-color: #c93432 !important;
}

.single-product .bydshop-single-product .summary .tinvwl_add_to_wishlist_button::before {
    color: #c93432 !important;
    font-size: 19px !important;
}

/* Категория, артикул и другие метаданные */
.single-product .bydshop-single-product .product_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #d9dde2;
    color: #59616b;
    font-size: 13px;
}

.single-product .bydshop-single-product .product_meta > span {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.single-product .bydshop-single-product .product_meta a {
    display: inline-block;
    padding: 5px 10px;
    background: #25282d;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.single-product .bydshop-single-product .product_meta a:hover {
    background: #c93432;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .single-product .bydshop-single-product .summary {
        padding: 17px;
        border-radius: 12px;
    }

    .single-product .bydshop-single-product .product_title {
        font-size: 22px !important;
    }

    .single-product .bydshop-single-product .product_meta {
        gap: 8px;
    }
} 

/* =====================================================
   BYDSHOP — оформление описания и доставки
   Этап 2: деликатное обновление стиля
   ===================================================== */

/* Общая основа двух информационных блоков */
.single-product .bydshop-product-information .bydshop-info-panel {
    border: 1px solid #e1e4e8;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(37, 40, 45, 0.045);
    box-sizing: border-box;
}

/* Заголовки информационных блоков 
.single-product .bydshop-product-information .bydshop-info-panel h2 {
    color: #25282d !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c93432;
    margin-bottom: 18px !important;
}*/

/* Текст */
.single-product .bydshop-product-information .bydshop-info-panel p {
    color: #4d535c;
    line-height: 1.7;
}

/* Ссылки внутри информационных блоков */
.single-product .bydshop-product-information .bydshop-info-panel a {
    color: #c93432;
    font-weight: 600;
    text-decoration: none;
}

.single-product .bydshop-product-information .bydshop-info-panel a:hover {
    color: #a92322;
    text-decoration: underline;
}

/* Описание товара — чуть более выразительное оформление */
.single-product .bydshop-product-information .bydshop-info-panel:first-child {
    border-top: 3px solid #c93432;
}

/* Доставка и упаковка — сохраняем её привычный стиль */
.single-product .bydshop-product-information .bydshop-info-panel:last-child {
    border-top: 3px solid #25282d;
}

/* Мобильная версия */
@media (max-width: 767px) {

    .single-product .bydshop-product-information .bydshop-info-panel {
        border-radius: 12px;
    }

    .single-product .bydshop-product-information .bydshop-info-panel h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .single-product .bydshop-product-information .bydshop-info-panel p {
        line-height: 1.65;
    }

}

/* BYDSHOP — лёгкое оформление иконок доверия */

/* Пункты доставки */
.single-product .bydshop-delivery-item {
    padding: 10px 11px;
    margin-bottom: 10px !important;
    border-radius: 10px;
    transition: background .2s ease;
}

.single-product .bydshop-delivery-item:hover {
    background: #f7f7f8;
}

/* Светлые иконки с красным акцентом */
.single-product .bydshop-delivery-icon {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    background: #f1f2f4 !important;
    color: #c93432 !important;
    border: 1px solid #e5e6e9;
    border-radius: 10px !important;
    font-size: 19px !important;
}

/* Заголовки пунктов */
.single-product .bydshop-delivery-item strong {
    color: #30343a !important;
    font-size: 15px;
    font-weight: 750 !important;
}

/* Описание пунктов */
.single-product .bydshop-delivery-item p {
    color: #69717b !important;
    line-height: 1.6;
}

/* Важная информация */
.single-product .bydshop-delivery-warning {
    background: #fff7f6 !important;
    border-left: 3px solid #c93432 !important;
    border-radius: 9px !important;
    padding: 15px !important;
}

.single-product .bydshop-delivery-warning strong {
    color: #30343a !important;
    font-weight: 750 !important;
}

/* Наличие товара оставляем зелёным */
.single-product .bydshop-single-product .summary .stock {
    background: #e8f4ec !important;
    border-color: #c8e4d0 !important;
    color: #237443 !important;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .single-product .bydshop-delivery-item {
        padding: 9px 7px;
    }

    .single-product .bydshop-delivery-icon {
        flex-basis: 36px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .single-product .bydshop-delivery-item strong {
        font-size: 14px;
    }
}


/* =====================================================
   BYDSHOP — финальная полировка описания товара
   ===================================================== */

/* Основной текст описания */
.single-product .bydshop-info-description {
    color: #505761;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

/* Абзацы */
.single-product .bydshop-info-description p {
    margin: 0 0 14px;
    line-height: 1.75;
}

/* Подзаголовки внутри описания */
.single-product .bydshop-info-description h3,
.single-product .bydshop-info-description h4 {
    color: #292d33;
    font-weight: 800;
    line-height: 1.35;
    margin: 22px 0 12px;
    padding-left: 12px;
    border-left: 3px solid #c93432;
}

/* Списки характеристик */
.single-product .bydshop-info-description ul,
.single-product .bydshop-info-description ol {
    padding-left: 22px;
    margin: 12px 0 18px;
}

.single-product .bydshop-info-description li {
    padding-left: 4px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.single-product .bydshop-info-description li::marker {
    color: #c93432;
}

/* Таблицы характеристик */
.single-product .bydshop-info-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.single-product .bydshop-info-description td,
.single-product .bydshop-info-description th {
    padding: 11px 10px;
    border: 1px solid #e3e6e9;
    text-align: left;
    vertical-align: top;
}

.single-product .bydshop-info-description th {
    background: #f1f2f4;
    color: #292d33;
    font-weight: 750;
}

.single-product .bydshop-info-description tr:nth-child(even) td {
    background: #fafafa;
}

/* Изображения внутри описания */
.single-product .bydshop-info-description img {
    max-width: 100%;
    height: auto;
    border-radius: 9px;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .single-product .bydshop-info-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .single-product .bydshop-info-description h3,
    .single-product .bydshop-info-description h4 {
        margin-top: 18px;
        font-size: 17px;
    }

    .single-product .bydshop-info-description table {
        font-size: 13px;
    }

    .single-product .bydshop-info-description td,
    .single-product .bydshop-info-description th {
        padding: 8px 7px;
    }
}

/* =====================================================
   BYDSHOP — локальные шрифты
   Exo 2 — заголовки, цены и кнопки
   Inter — основной текст
   ===================================================== */

/* EXO 2 — кириллица */
@font-face {
    font-family: 'Exo 2';
    src: url('assets/fonts/exo-2-cyrillic.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* EXO 2 — расширенная кириллица */
@font-face {
    font-family: 'Exo 2';
    src: url('assets/fonts/exo-2-cyrillic-ext.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C8A, U+A640-A69F, U+FE2E-FE2F;
}

/* EXO 2 — латиница */
@font-face {
    font-family: 'Exo 2';
    src: url('assets/fonts/exo-2-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* EXO 2 — расширенная латиница */
@font-face {
    font-family: 'Exo 2';
    src: url('assets/fonts/exo-2-latin-ext.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* INTER — кириллица */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-cyrillic-variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* INTER — латиница */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-latin-variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ОСНОВНОЙ ТЕКСТ */
body,
input,
select,
textarea {
    font-family: 'Inter', sans-serif !important;
}

/* ЗАГОЛОВКИ */
h1, h2, h3, h4, h5, h6,
.product_title,
.woocommerce-loop-product__title {
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 700;
}

/* ЦЕНЫ И КНОПКИ */
.price,
button,
.button,
input[type="button"],
input[type="submit"],
.single_add_to_cart_button {
    font-family: 'Exo 2', sans-serif !important;
    min-height: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    border-radius: 20px !important;
}
/* =====================================================
   BYDSHOP — цветовые статусы наличия на странице товара
   ===================================================== */

/* В наличии — зелёный */
.single-product .bydshop-single-product .summary .stock.in-stock {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    background: #e8f4ec !important;
    border: 1px solid #c8e4d0 !important;
    border-radius: 20px;
    color: #237443 !important;
    font-size: 14px;
    font-weight: 700;
}

/* Нет в наличии — красный */
.single-product .bydshop-single-product .summary .stock.out-of-stock {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    background: #fff0f0 !important;
    border: 1px solid #edcaca !important;
    border-radius: 20px;
    color: #c93432 !important;
    font-size: 14px;
    font-weight: 700;
}

/* Доступно для предзаказа — оранжевый */
.single-product .bydshop-single-product .summary .stock.available-on-backorder {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    background: #fff3e5 !important;
    border: 1px solid #f2d2a8 !important;
    border-radius: 20px;
    color: #bd6b13 !important;
    font-size: 14px;
    font-weight: 700;
}

/* BYDSHOP — карточки новых поступлений на главной */

.bydshop-home-products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.bydshop-home-products li.product {
    display: grid !important;
    grid-template-columns: minmax(78px, 32%) minmax(0, 1fr);
    grid-template-areas:
        "image title"
        "image details"
        "image price"
        "image stock"
        "bottom bottom";
    align-content: start;
    gap: 8px 14px;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 16px !important;
    background: radial-gradient(ellipse at 85% 15%, #334b61 0%, #182a3c 43%, #0b1521 100%) !important;
    border: 1px solid #d3deec !important;
    border-radius: 18px !important;
    text-align: left !important;
}

.bydshop-home-products li.product > a.woocommerce-LoopProduct-link,
.bydshop-home-products li.product > a.woocommerce-loop-product__link {
    display: contents !important;
}

.bydshop-home-products li.product img {
    grid-area: image;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 !important;
}

.bydshop-home-products .woocommerce-loop-product__title {
    grid-area: title;
    color: #fff !important;
}

.bydshop-home-products .bydshop-catalog-details {
    grid-area: details;
    color: #fff;
}

.bydshop-home-products .price {
    grid-area: price;
    color: #fff !important;
}

.bydshop-home-products .bydshop-stock-status {
    grid-area: stock;
}

.bydshop-home-products .bydshop-card-bottom {
    grid-area: bottom;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bydshop-home-products .bydshop-card-divider {
    width: 100%;
    height: 1px;
    background: rgba(220, 230, 240, .35);
}

/* =========================================
   BYDSHOP — новые поступления
   Финальная компоновка карточек
   ========================================= */

/* Карточка */
body.home .bydshop-home-products li.product {
    display: grid !important;
    grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto minmax(12px, 1fr) auto !important;
    grid-template-areas:
        "image title"
        "image details"
        "image stock"
        "image price"
        "image spacer"
        "bottom bottom" !important;

    align-content: stretch !important;
    align-items: start !important;
    gap: 8px 14px !important;

    min-width: 0 !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Ссылка WooCommerce */
body.home .bydshop-home-products li.product > a.woocommerce-LoopProduct-link,
body.home .bydshop-home-products li.product > a.woocommerce-loop-product__link {
    display: contents !important;
}

/* Изображение */
body.home .bydshop-home-products li.product a img {
    grid-area: image !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    align-self: start !important;
    margin: 0 !important;
}

/* Название */
body.home .bydshop-home-products li.product .woocommerce-loop-product__title {
    grid-area: title !important;
    min-width: 0 !important;
    color: #fff !important;
    text-align: left !important;
}

/* Характеристики */
body.home .bydshop-home-products li.product .bydshop-catalog-details {
    grid-area: details !important;
    min-width: 0 !important;
    line-height: 1em;
}

/* Статус — над ценой */
body.home .bydshop-home-products li.product .bydshop-stock-status {
    grid-area: stock !important;
    justify-self: start !important;
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 12px;
}

/* Цена — справа */
body.home .bydshop-home-products li.product .price {
    grid-area: price !important;
    justify-self: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    text-align: right !important;
}

/* Общий нижний блок */
body.home .bydshop-home-products li.product .bydshop-card-bottom {
    grid-area: bottom !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 4px !important;
}

/* Разделительная линия */
body.home .bydshop-home-products li.product .bydshop-card-divider {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 1px !important;
    margin: 0 !important;
    background: rgba(220, 230, 240, .65) !important;
}

/* Корзина */
body.home .bydshop-home-products li.product .bydshop-card-bottom a.add_to_cart_button,
body.home .bydshop-home-products li.product .bydshop-card-bottom a.product_type_simple,
body.home .bydshop-home-products li.product .bydshop-card-bottom a.product_type_variable,
body.home .bydshop-home-products li.product .bydshop-card-bottom a.product_type_grouped {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Избранное */
body.home .bydshop-home-products li.product .bydshop-card-bottom .tinv-wraper {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}

body.home .bydshop-home-products li.product .bydshop-card-bottom .tinvwl_add_to_wishlist_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 0 !important;
    color: #fff !important;
    white-space: nowrap !important;
    font-size: 12px;
}

/* Одинаковая высота карточек */
body.home .bydshop-home-products {
    align-items: stretch !important;
}

/* Адаптивная сетка новых поступлений */

body.home .bydshop-home-products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

/* Небольшие настольные экраны */
@media (max-width: 1199px) {
    body.home .bydshop-home-products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Планшеты и небольшие ноутбуки */
@media (max-width: 850px) {
    body.home .bydshop-home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Мобильные телефоны */
@media (max-width: 520px) {
    body.home .bydshop-home-products {
        grid-template-columns: 1fr !important;
    }
}

/* Новые поступления — уменьшаем расстояние до цены */
body.home .bydshop-home-products .bydshop-card-divider {
    margin-bottom: 0 !important;
}

body.home .bydshop-home-products .price {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.2 !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button {
    display: flex;
}

/* =========================================
   BYDSHOP — Хлебные крошки
   ========================================= */

.bydshop-breadcrumbs {
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 5px 16px;
    box-sizing: border-box;
    background: #f4f7fb;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
}

.bydshop-breadcrumbs .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 19px;
    line-height: 1.3;
    color: #e31e35;
}

.bydshop-breadcrumbs .woocommerce-breadcrumb a {
    font-size: inherit;
    color: #183452;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bydshop-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #e31e35;
}

/* =========================================
   BYDSHOP — Панель над товарами
   ========================================= */

.bydshop-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(20, 42, 68, 0.05);
}

/* Счётчик товаров */

.bydshop-catalog-count {
    min-width: 0;
}

.bydshop-catalog-count .woocommerce-result-count {
    float: none;
    margin: 0;
    color: #536579;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

/* Блок сортировки */

.bydshop-catalog-order {
    flex-shrink: 0;
}

.bydshop-catalog-order .woocommerce-ordering {
    float: none;
    margin: 0;
}

.bydshop-catalog-order select.orderby {
    min-width: 220px;
    max-width: 100%;
    min-height: 42px;
    padding: 0 38px 0 14px;
    color: #183452;
    background-color: #f8fafc;
    border: 1px solid #d9e1eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.bydshop-catalog-order select.orderby:focus {
    border-color: #e31e35;
    box-shadow: 0 0 0 3px rgba(227, 30, 53, 0.10);
}

/* =========================================
   BYDSHOP — Мобильная версия
   ========================================= */

@media (max-width: 640px) {

      .bydshop-breadcrumbs {
        padding: 5px 12px;
    }

       .bydshop-breadcrumbs .woocommerce-breadcrumb {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .bydshop-catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 18px;
        padding: 13px;
    }

    .bydshop-catalog-count .woocommerce-result-count {
        font-size: 12px;
    }

    .bydshop-catalog-order,
    .bydshop-catalog-order .woocommerce-ordering {
        width: 100%;
    }

    .bydshop-catalog-order select.orderby {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }
}

/* Активная категория в хлебных крошках */
.bydshop-breadcrumb-current {
    color: #e31e35;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #e31e35;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.bydshop-breadcrumbs .breadcrumb-separator {
    color: #9aa8b7;
    padding: 0 4px;
}

.bydshop-breadcrumbs .woocommerce-breadcrumb .breadcrumb_last {
    color: #e31e35;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #e31e35;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* BYDSHOP — мобильное отображение согласия в VIN-форме */
@media (max-width: 767px) {
    .bydshop-vin-form label.bydshop-consent {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .bydshop-vin-form label.bydshop-consent input[type="checkbox"] {
        flex: 0 0 18px !important;
        width: 18px !important;
        min-width: 18px !important;
        height: 18px !important;
        margin: 2px 0 0 !important;
        padding: 0 !important;
    }

    .bydshop-vin-form label.bydshop-consent > span {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        line-height: 1.5 !important;
    }
}

/* BYDSHOP — плавающая кнопка «Наверх» */
#bydshop-back-to-top {
    position: fixed;
    right: 10px;
    bottom: 25px;
    z-index: 99999;

    width: 50px;
    height: 50px;
    border: 1px solid #ed202b;
    border-radius: 50%;

    background: #0b1520;
    color: #ffffff;

    font-size: 28px;
    line-height: 1;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition: opacity .25s ease,
                visibility .25s ease,
                transform .25s ease,
                background .25s ease;
}

#bydshop-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#bydshop-back-to-top:hover {
    background: #ed202b;
}

@media (max-width: 767px) {
    #bydshop-back-to-top {
        width: 44px;
        height: 44px;
        right: 0px;
        bottom: 18px;
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #bydshop-back-to-top {
        transition: none;
    }
}

/* ==================================================
   BYDSHOP — DARK CART DESIGN
   Версия 1.0 — только визуальное оформление корзины
   ================================================== */

body.woocommerce-cart {
    background: #101d2b;
    color: #f1f5f9;
}

body.woocommerce-cart .woocommerce-main {
    background: #101d2b;
    color: #f1f5f9;
    padding: 45px 0 60px;
}

body.woocommerce-cart .woocommerce-main h1,
body.woocommerce-cart .woocommerce-main h2,
body.woocommerce-cart .woocommerce-main h3 {
    color: #fff;
}

body.woocommerce-cart .wp-block-woocommerce-cart {
    color: #f1f5f9;
}

body.woocommerce-cart .wp-block-woocommerce-filled-cart-block,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    color: #f1f5f9;
}

body.woocommerce-cart .wp-block-woocommerce-cart-items-block,
body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
    background: #17283a;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    padding: 22px;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart-items th,
body.woocommerce-cart .wc-block-cart-items td {
    color: #f1f5f9;
    border-color: rgba(255,255,255,.12);
}

body.woocommerce-cart .wc-block-cart-items__row {
    border-color: rgba(255,255,255,.12);
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-cart-item__total-price,
body.woocommerce-cart .wc-block-components-totals-item {
    color: #f1f5f9;
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata a {
    color: #aebdcd;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
    color: #ff626a;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
    background: #101d2b;
    border: 1px solid #46596d;
    border-radius: 6px;
}

body.woocommerce-cart .wc-block-components-quantity-selector input,
body.woocommerce-cart .wc-block-components-quantity-selector button {
    color: #fff;
    background: transparent;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
    color: #f1f5f9;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}

body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value {
    color: #f1f5f9;
}

body.woocommerce-cart .wc-block-components-totals-wrapper {
    border-color: rgba(255,255,255,.12);
}

body.woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .wc-block-cart__submit-button {
    background: #ed202b !important;
    color: #fff !important;
    border: 0;
    border-radius: 7px;
    font-weight: 700;
    min-height: 50px;
    transition: background .2s ease;
}

body.woocommerce-cart .wc-block-components-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover {
    background: #c91620 !important;
    color: #fff !important;
}

body.woocommerce-cart .wc-block-components-notice-banner {
    background: #20374c;
    color: #fff;
    border-color: rgba(255,255,255,.15);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    background: #17283a;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    padding: 35px 22px;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block a {
    color: #ff626a;
}

body.woocommerce-cart .wp-block-woocommerce-product-collection {
    color: #fff;
}

@media (max-width: 768px) {
    body.woocommerce-cart .woocommerce-main {
        padding: 25px 0 40px;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart-items-block,
    body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
        padding: 14px;
        border-radius: 9px;
    }

    body.woocommerce-cart .wc-block-cart-items__row {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    body.woocommerce-cart .wc-block-cart__submit-button {
        width: 100%;
    }
}


/* ==================================================
   BYDSHOP CART — PRODUCT CARDS REDESIGN v2
   Только визуальное оформление
   ================================================== */

body.woocommerce-cart .wc-block-cart-items {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 14px !important;
    border: 0 !important;
}

body.woocommerce-cart .wc-block-cart-items thead {
    display: none;
}

body.woocommerce-cart .wc-block-cart-items tbody {
    display: grid;
    gap: 14px;
}

body.woocommerce-cart .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 125px minmax(0, 1fr) 145px;
    grid-template-areas: "image product total";
    align-items: center;
    gap: 22px;
    padding: 20px !important;
    background: #20364b !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
}

body.woocommerce-cart .wc-block-cart-items__row td {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    min-width: 0;
}

body.woocommerce-cart .wc-block-cart-item__image {
    grid-area: image;
    width: 125px;
}

body.woocommerce-cart .wc-block-cart-item__image img {
    display: block;
    width: 125px !important;
    height: 125px !important;
    max-width: 100%;
    object-fit: contain;
    background: #f4f6f8;
    border-radius: 8px;
    padding: 5px;
    box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart-item__product {
    grid-area: product;
}

body.woocommerce-cart .wc-block-cart-item__wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

body.woocommerce-cart .wc-block-components-product-name {
    color: #fff !important;
    font-size: 17px !important;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-name:hover {
    color: #ff626a !important;
}

body.woocommerce-cart .wc-block-components-product-metadata {
    color: #c1cedb !important;
    font-size: 13px;
    line-height: 1.55;
}

body.woocommerce-cart .wc-block-cart-item__prices {
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
}

body.woocommerce-cart .wc-block-cart-item__quantity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

body.woocommerce-cart .wc-block-cart-item__total {
    grid-area: total;
    align-self: start;
    justify-self: end;
    text-align: right;
}

body.woocommerce-cart .wc-block-cart-item__total-price {
    color: #fff !important;
    font-size: 19px !important;
    font-weight: 800;
    white-space: nowrap;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    background: #142638 !important;
    border: 1px solid #52677c !important;
    border-radius: 6px;
}

body.woocommerce-cart .wc-block-components-quantity-selector input {
    color: #fff !important;
    background: transparent !important;
    min-width: 35px;
}

body.woocommerce-cart .wc-block-components-quantity-selector button {
    color: #fff !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
    color: #ff626a !important;
    font-size: 13px;
}

body.woocommerce-cart .wp-block-woocommerce-cart-items-block {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
    margin-top: 8px;
    padding: 24px !important;
    background: #17283a !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 12px;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block {
    font-size: 22px !important;
    margin-bottom: 18px;
}

body.woocommerce-cart .wc-block-components-totals-item {
    padding-top: 13px;
    padding-bottom: 13px;
}

body.woocommerce-cart .wc-block-components-totals-item__label {
    color: #c1cedb !important;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
    color: #fff !important;
    font-weight: 700;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 18px;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #fff !important;
    font-size: 20px;
    font-weight: 800;
}

@media (max-width: 768px) {
    body.woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: 88px minmax(0, 1fr);
        grid-template-areas:
            "image product"
            "image total";
        gap: 12px 15px;
        padding: 14px !important;
        align-items: start;
    }

    body.woocommerce-cart .wc-block-cart-item__image {
        width: 88px;
    }

    body.woocommerce-cart .wc-block-cart-item__image img {
        width: 88px !important;
        height: 88px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__total {
        justify-self: start;
        text-align: left;
    }

    body.woocommerce-cart .wc-block-cart-item__total-price {
        font-size: 17px !important;
    }

    body.woocommerce-cart .wc-block-components-product-name {
        font-size: 15px !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
        padding: 17px !important;
    }
}


/* BYDSHOP CART — FIX PRODUCT ROW LAYOUT v3 */

body.woocommerce-cart .wc-block-cart-items tbody {
    display: block !important;
}

body.woocommerce-cart .wc-block-cart-items__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 22px !important;
    padding: 20px !important;
    margin-bottom: 14px !important;
    background: #20364b !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 12px !important;
    box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart-items__row > td {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__image {
    flex: 0 0 125px !important;
    width: 125px !important;
}

body.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__image img {
    width: 125px !important;
    height: 125px !important;
    object-fit: contain !important;
    background: #f4f6f8;
    border-radius: 8px;
    padding: 5px;
    box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__product {
    flex: 1 1 auto !important;
    width: auto !important;
}

body.woocommerce-cart .wc-block-cart-item__wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100%;
}

body.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__total {
    flex: 0 0 140px !important;
    width: 140px !important;
    text-align: right !important;
}

body.woocommerce-cart .wc-block-cart-item__total-price {
    white-space: nowrap;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #fff !important;
}

body.woocommerce-cart .wc-block-components-product-name {
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #fff !important;
}

body.woocommerce-cart .wc-block-cart-item__prices {
    color: #dce6f0 !important;
    font-size: 15px !important;
}

body.woocommerce-cart .wc-block-components-product-metadata {
    color: #c1cedb !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

@media (max-width: 768px) {
    body.woocommerce-cart .wc-block-cart-items__row {
        display: grid !important;
        grid-template-columns: 88px minmax(0, 1fr) !important;
        grid-template-areas:
            "image product"
            "total total" !important;
        gap: 12px 15px !important;
    }

    body.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__image {
        grid-area: image;
        width: 88px !important;
    }

    body.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__image img {
        width: 88px !important;
        height: 88px !important;
    }

    body.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__product {
        grid-area: product;
        width: 100% !important;
    }

    body.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__total {
        grid-area: total;
        width: 100% !important;
        text-align: left !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255,255,255,.12) !important;
    }

    body.woocommerce-cart .wc-block-components-product-name {
        font-size: 15px !important;
    }
}

