/*
Theme Name: Storefront Eshop Child
Theme URI: https://www.omegathemes.com/products/free-online-store-wordpress-theme
Template: storefront-eshop
Author: Omega Themes
Author URI: https://www.omegathemes.com/
Description: Storefront Eshop is a user-friendly eCommerce store theme designed for online retailers, digital marketplaces, fashion stores, electronics shops, lifestyle brands, multi-vendor marketplaces, and small to large business owners looking to build a professional online shopping platform. It is ideal for selling physical products, digital downloads, subscription-based services, fashion apparel, electronics, home decor, beauty products, accessories, and handmade goods while delivering a smooth and engaging shopping experience. With a clean, modern, and fully responsive layout, it ensures seamless browsing across desktops, tablets, and smartphones along with fast loading speed and SEO-friendly structure for better search visibility. The theme includes advanced product catalogs, category-based browsing, AJAX search functionality, wishlist options, product filters, promotional banners, discount showcases, and secure checkout systems to enhance conversions and user engagement. Built with optimized and secure code, it integrates seamlessly with WooCommerce for product management, payment processing, order tracking, shipping options, and inventory control, YITH WooCommerce Wishlist for saving favorite items, and Contact Form 7 for customer inquiries and support requests. Customization options for typography, colors, and layouts allow full branding flexibility, making it suitable for fashion boutiques, tech stores, grocery shops, and multi-category online stores. Storefront Eshop provides a complete and scalable eCommerce solution for building a high-performing, conversion-focused online retail business.
Tags: blog,e-commerce,portfolio,one-column,two-columns,three-columns,four-columns,right-sidebar,left-sidebar,grid-layout,full-width-template,wide-blocks,block-styles,editor-style,custom-background,custom-logo,custom-menu,custom-colors,custom-header,featured-images,flexible-header,footer-widgets,featured-image-header,post-formats,rtl-language-support,translation-ready,theme-options,threaded-comments,sticky-post
Version: 1.4.0.1778508243
Updated: 2026-05-11 17:04:03

*/
/* ==========================================
   LEOSHOP CATALOG MENU
   ========================================== */
.leoshop-catalog-wrapper{display:inline-block;position:relative}
.leoshop-catalog{position:relative;width:280px;font-family:inherit}
.leoshop-catalog__toggle{display:flex;align-items:center;gap:10px;width:100%;padding:14px 20px;background:#f9c5d5;color:#2d1b4e;border:none;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;cursor:pointer}
.leoshop-catalog__toggle .lc-arrow{margin-left:auto;transition:.2s}
.leoshop-catalog:hover .leoshop-catalog__toggle .lc-arrow,
.leoshop-catalog.is-open-default .leoshop-catalog__toggle .lc-arrow{transform:rotate(180deg)}

.leoshop-catalog__list{position:absolute;top:100%;left:0;width:280px;background:#fff;list-style:none;margin:0;padding:0;box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:9999;display:none}
.leoshop-catalog:hover .leoshop-catalog__list,
.leoshop-catalog.is-open-default .leoshop-catalog__list{display:block}
/* На главной — меню в normal flow, не absolute */
.leoshop-catalog.is-open-default .leoshop-catalog__list{position:relative;top:auto;left:auto;box-shadow:none;border:1px solid #f0f0f0;border-top:none}

.leoshop-catalog__item{position:relative;border-bottom:1px solid #f3f3f3;list-style:none}
.leoshop-catalog__item:last-child{border-bottom:none}
.leoshop-catalog__link{display:flex;align-items:center;gap:12px;padding:12px 18px;color:#2d1b4e;text-decoration:none;transition:.2s}
.leoshop-catalog__link:hover{background:#fdf0f6;color:#c8087b}
.leoshop-catalog__icon{display:flex;width:24px;height:24px;flex-shrink:0;color:#c8087b}
.leoshop-catalog__icon svg{width:100%;height:100%}
.leoshop-catalog__name{flex:1;font-size:14px}
.leoshop-catalog__chevron{color:#bbb;font-size:18px;line-height:1;transition:.2s}
.leoshop-catalog__item:hover .leoshop-catalog__chevron{color:#c8087b;transform:translateX(3px)}

/* Активная категория */
.leoshop-catalog__item.is-active>.leoshop-catalog__link{background:#fdf0f6;color:#c8087b;font-weight:600}
.leoshop-catalog__item.is-active>.leoshop-catalog__link .leoshop-catalog__icon{color:#c8087b}

/* Mega menu — 2 колонки */
.leoshop-catalog__submenu{position:absolute;top:0;left:100%;width:560px;background:#fff;list-style:none;margin:0;padding:16px 8px;box-shadow:0 8px 24px rgba(0,0,0,.12);display:none;columns:2;column-gap:8px}
.leoshop-catalog__item.has-children:hover .leoshop-catalog__submenu{display:block}
.leoshop-catalog__submenu li{list-style:none;break-inside:avoid;margin:0}
.leoshop-catalog__submenu li a{display:block;padding:8px 16px;color:#2d1b4e;text-decoration:none;font-size:13px;border-radius:4px;transition:.2s}
.leoshop-catalog__submenu li a:hover{background:#fdf0f6;color:#c8087b}
.leoshop-catalog__submenu li a.is-current{background:#fdf0f6;color:#c8087b;font-weight:600}

/* На мобиле — подменю под пунктом, не вправо */
@media (max-width:768px){
  .leoshop-catalog,.leoshop-catalog__list{width:100%}
  .leoshop-catalog__submenu{position:static;width:100%;columns:1;padding:0;box-shadow:none;border-left:3px solid #f9c5d5}
}
/* ==========================================
   SIDEBAR MODE (меню в левой колонке)
   ========================================== */
.leoshop-catalog-wrapper--sidebar{display:block;width:100%;margin-bottom:24px}
.leoshop-catalog-wrapper--sidebar .leoshop-catalog{width:100%}
.leoshop-catalog-wrapper--sidebar .leoshop-catalog__toggle{cursor:default;border-radius:4px 4px 0 0}
.leoshop-catalog-wrapper--sidebar .leoshop-catalog__toggle .lc-arrow{display:none}
.leoshop-catalog-wrapper--sidebar .leoshop-catalog__list{position:relative;top:auto;left:auto;width:100%;display:block;box-shadow:none;border:1px solid #e8e8e8;border-top:none;border-radius:0 0 4px 4px}
.leoshop-catalog-wrapper--sidebar .leoshop-catalog__submenu{left:calc(100% + 1px)}

/* На планшетах — подменю вниз, в 1 колонку */
@media (max-width:1024px){
  .leoshop-catalog-wrapper--sidebar .leoshop-catalog__submenu{position:static;width:100%;columns:1;padding:0;box-shadow:none;border-left:3px solid #f9c5d5;margin:0}
}
/* Поднимаем сайдбар над основным контентом */
aside#secondary{position:relative;z-index:50}
.leoshop-catalog-wrapper--sidebar{position:relative;z-index:51}
.leoshop-catalog-wrapper--sidebar .leoshop-catalog__submenu{z-index:52}
/* ==========================================
   ВІРТУАЛЬНИЙ SIDEBAR (для сторінок без #secondary)
   ========================================== */
.column-row.leoshop-has-virtual-sidebar{
  display:flex;
  align-items:flex-start;
  gap:30px;
}
.column-row.leoshop-has-virtual-sidebar > .content-area{
  flex:1 1 0 !important;
  min-width:0 !important;
}
.leoshop-virtual-sidebar{
  flex:0 0 280px;
  position:relative;
  z-index:50;
}

/* На вузьких екранах sidebar згори, контент знизу */
@media (max-width:1024px){
  .column-row.leoshop-has-virtual-sidebar{flex-direction:column}
  .leoshop-virtual-sidebar{flex:0 0 auto;width:100%}
}
/* ==========================================
   MOBILE BURGER + OFF-CANVAS DRAWER
   ========================================== */

/* Бургер прихований на десктопі */
.leoshop-burger{display:none !important}

/* Drawer та overlay приховані на десктопі */
.leoshop-drawer,
.leoshop-drawer-overlay{display:none}

/* === МОБІЛЬНА ВЕРСІЯ === */
@media (max-width:1024px){
  /* Бургер у шапці */
  .leoshop-burger{
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:42px;
    height:42px;
    padding:10px;
    border:none;
    background:transparent;
    cursor:pointer;
    position:fixed;
    top:12px;
    left:12px;
    z-index:9998;
    border-radius:6px;
    background:#2d1b4e;
  }
  .leoshop-burger span{
    display:block;
    width:22px;
    height:2px;
    background:#fff;
    border-radius:1px;
    transition:.2s;
  }

  /* Сховати наш sidebar з меню каталогу на мобільній (буде у drawer) */
  .leoshop-virtual-sidebar,
  .leoshop-catalog-wrapper--sidebar{display:none !important}
  .column-row.leoshop-has-virtual-sidebar{flex-direction:column}
  .column-row.leoshop-has-virtual-sidebar > .content-area{flex:1 1 100% !important}

  /* Overlay */
  .leoshop-drawer-overlay{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:9998;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s;
  }
  .leoshop-drawer-overlay.is-open{opacity:1;visibility:visible}

  /* Drawer */
  .leoshop-drawer{
    display:flex;
    flex-direction:column;
    position:fixed;
    top:0;
    left:0;
    width:85%;
    max-width:340px;
    height:100vh;
    background:#fff;
    z-index:9999;
    transform:translateX(-100%);
    transition:transform .3s ease;
    overflow-y:auto;
    box-shadow:2px 0 20px rgba(0,0,0,.15);
  }
  .leoshop-drawer.is-open{transform:translateX(0)}

  /* Header drawer'а */
  .leoshop-drawer__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
    background:#2d1b4e;
    color:#fff;
  }
  .leoshop-drawer__brand{
    font-size:18px;
    font-weight:700;
    letter-spacing:.5px;
  }
  .leoshop-drawer__close{
    background:transparent;
    border:none;
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    padding:0;
    width:32px;
    height:32px;
  }

  /* Список пунктів */
  .leoshop-drawer__nav{padding:8px 0}
  .leoshop-drawer__list{
    list-style:none;
    margin:0;
    padding:0;
  }
  .leoshop-drawer__list li{margin:0}
  .leoshop-drawer__item{
    display:flex;
    align-items:center;
    gap:14px;
    width:100%;
    padding:14px 20px;
    color:#2d1b4e;
    text-decoration:none;
    border:none;
    background:transparent;
    text-align:left;
    font-size:15px;
    cursor:pointer;
    transition:.15s;
  }
  .leoshop-drawer__item:hover,
  .leoshop-drawer__item:active{
    background:#fdf0f6;
    color:#c8087b;
  }
  .leoshop-drawer__icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    color:#c8087b;
    flex-shrink:0;
  }
  .leoshop-drawer__chevron{
    margin-left:auto;
    font-size:20px;
    line-height:1;
    transition:transform .2s;
  }
  .leoshop-drawer__catalog-toggle.is-open .leoshop-drawer__chevron{
    transform:rotate(90deg);
  }
  .leoshop-drawer__divider{
    border:none;
    border-top:1px solid #f0f0f0;
    margin:6px 0;
  }

  /* Каталог content (розкривний) */
  .leoshop-drawer__catalog-content{
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
    background:#fafafa;
  }
  .leoshop-drawer__catalog-content.is-open{
    max-height:2000px;
  }
  .leoshop-drawer__catalog-content .leoshop-catalog{width:100%}
  .leoshop-drawer__catalog-content .leoshop-catalog__toggle{display:none} /* приховуємо внутрішню кнопку */
  .leoshop-drawer__catalog-content .leoshop-catalog__list{
    position:static !important;
    width:100% !important;
    display:block !important;
    box-shadow:none !important;
    border:none !important;
  }
  .leoshop-drawer__catalog-content .leoshop-catalog__submenu{
    position:static !important;
    width:100% !important;
    columns:1 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 0 0 20px !important;
    border-left:3px solid #f9c5d5 !important;
  }

  /* Запобігти скролу body коли drawer відкритий */
  body.leoshop-drawer-open{overflow:hidden}
}
/* ==========================================
   ВИДАЛЕННЯ ЗАЙВИХ МЕНЮ ТЕМИ
   ========================================== */

/* Сховати горизонтальне меню підкатегорій у шапці (десктоп + мобільна) */
.primary-menu,
.primary-menu.theme-menu,
nav.primary-menu,
.theme-menu,
.drp_dwn_menu {
    display: none !important;
}

/* Сховати submenu toggle / бургер теми на мобільній */
@media (max-width: 1024px) {
    .theme-aria-button.submenu-toggle,
    .responsive-toggle,
    .mobile-menu-toggle,
    .menu-toggle,
    .nav-toggle {
        display: none !important;
    }
}

/* ==========================================
   ВИПРАВЛЕННЯ КОЛЬОРУ "КАТАЛОГ ТОВАРІВ" У DRAWER
   ========================================== */

.leoshop-drawer .leoshop-drawer__catalog-toggle,
.leoshop-drawer .leoshop-drawer__catalog-toggle > span,
.leoshop-drawer .leoshop-drawer__catalog-toggle .leoshop-drawer__chevron,
.leoshop-drawer .leoshop-drawer__item,
.leoshop-drawer .leoshop-drawer__item > span {
    color: #2d1b4e !important;
}

.leoshop-drawer .leoshop-drawer__catalog-toggle:hover,
.leoshop-drawer .leoshop-drawer__catalog-toggle.is-open,
.leoshop-drawer .leoshop-drawer__item:hover {
    color: #c8087b !important;
}

.leoshop-drawer .leoshop-drawer__catalog-toggle:hover > span,
.leoshop-drawer .leoshop-drawer__catalog-toggle.is-open > span,
.leoshop-drawer .leoshop-drawer__item:hover > span {
    color: inherit !important;
}

/* Сховати дублюючий внутрішній toggle каталога */
.leoshop-drawer .leoshop-catalog__toggle {
    display: none !important;
}
/* ==========================================
   ПРИБРАТИ САЙДБАР-МЕНЮ НА МОБІЛЬНІЙ (повністю)
   ========================================== */
@media (max-width: 1024px) {
    /* Сховати наш каталог-меню скрізь поза drawer */
    body > .leoshop-catalog-wrapper,
    .leoshop-catalog-wrapper--sidebar,
    .leoshop-virtual-sidebar,
    aside#secondary,
    .column-row > aside,
    .column-row > .leoshop-virtual-sidebar {
        display: none !important;
    }

    /* Контент знову на повну ширину */
    .column-row.leoshop-has-virtual-sidebar {
        display: block !important;
    }
    .column-row.leoshop-has-virtual-sidebar > .content-area {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}
/* ==========================================
   ФІНАЛЬНЕ ПРИБИРАННЯ "БУРГЕРА" ТЕМИ
   ========================================== */

/* Прибрати залишки кнопки "Магазин за відділом" та її варіантів на всіх розширеннях */
.product-btn,
button.product-btn,
.product-category-area,
.theme-header-areas .product-category-area,
.product-cat,
.product-cat-area {
    display: none !important;
}

/* На мобільній — додатково перестрахуватися */
@media (max-width: 1024px) {
    .theme-header-areas-left .product-category-area,
    .header-areas-left,
    .lower-header .product-btn,
    button[class*="product-btn"],
    .product-btn-mobile {
        display: none !important;
    }
}
/* Сховати рідний off-canvas toggle теми (бургер по центру шапки) */
.navbar-control,
.navbar-control-offcanvas,
.navbar-control-trigger,
.navbar-controls,
.navbar-controls.twp-hide-js,
button.navbar-control-offcanvas {
    display: none !important;
}

/* === LEO SHOP REDESIGN (managed block, do not edit manually) === */

/* 1. Hide compare/wishlist remnants in theme header */
.site-header a[href*="compare"],
.site-header a[href*="wishlist"],
.top-bar a[href*="compare"],
.top-bar a[href*="wishlist"],
.header-top a[href*="compare"],
.header-top a[href*="wishlist"],
.secondary-navigation a[href*="compare"],
.secondary-navigation a[href*="wishlist"],
.before-site-header a[href*="compare"],
.before-site-header a[href*="wishlist"],
#site-header-cart a[href*="compare"],
#site-header-cart a[href*="wishlist"] {
    display: none !important;
}

/* 2. Smaller site header */
.site-header { padding-top: 6px !important; padding-bottom: 6px !important; }
.site-header .site-branding img,
.site-header .custom-logo,
.site-header .custom-logo-link img { max-height: 50px !important; width: auto !important; height: auto !important; }
.site-header .site-search { margin-top: 0 !important; margin-bottom: 0 !important; }
.site-header form.search-form input,
.site-header .search-field { padding: 8px 12px !important; height: 40px !important; }
.site-header .header-cart,
.site-header .site-header-cart,
.site-header .secondary-navigation { padding-top: 4px !important; padding-bottom: 4px !important; }

/* 4. Center titles on category/subcategory/tag/shop archives */
.tax-product_cat .page-title,
.tax-product_tag .page-title,
.post-type-archive-product .page-title,
.woocommerce-products-header__title,
.woocommerce-products-header,
h1.page-title { text-align: center !important; }

/* 5a. Category/tag description moved to the bottom by PHP hook */
.tax-product_cat .term-description,
.tax-product_tag .term-description,
.post-type-archive-product .term-description { display: none !important; }
.term-description-bottom {
    display: block;
    margin: 40px 0 20px;
    padding: 20px 0;
    text-align: left;
    line-height: 1.6;
    border-top: 1px solid #eee;
}
.term-description-bottom h1,
.term-description-bottom h2,
.term-description-bottom h3 { text-align: left; }

/* === END LEO SHOP REDESIGN === */
/* ============================================================
 *  LEO SHOP — дополнения к редизайну
 *  Куда: /wp-content/themes/storefront-eshop-child/style.css
 *  Дописать В САМЫЙ КОНЕЦ файла.
 *  Безопасно: если эти правила уже есть, ничего не сломается,
 *  просто будут переопределены последними.
 * ============================================================ */

/* === LEO SHOP REDESIGN PATCH 2 (extra hide for top-bar links) === */

/* Скрыть «Перелік бажань | Порівняти» и любые их пункты в верхнем баре,
   а также в навигационном Gutenberg-меню (wp-block-page-list) */
.before-site-header,
.site-header .wp-block-page-list,
.site-header .wp-block-navigation,
.site-header-top,
.header-top-bar,
.header-top {
    /* по умолчанию ничего не скрываем целиком — только конкретные ссылки */
}

.wp-block-page-list a[href*="compare"],
.wp-block-page-list a[href*="wishlist"],
.wp-block-page-list a[href*="yith-compare"],
.wp-block-page-list a[href*="yith-wcwl"],
.wp-block-page-list a[href*="/compare/"],
.wp-block-page-list a[href*="/wishlist/"],
.wp-block-navigation a[href*="compare"],
.wp-block-navigation a[href*="wishlist"],
header a[href="https://www.google.com/"],
header a[href*="google.com"][rel*="noopener"] {
    display: none !important;
}

/* Скрыть пункты «Перелік бажань» и «Порівняти» в любых меню по тексту,
   через атрибут data-title (если есть) или через универсальные классы */
li.page-item-compare,
li.page-item-wishlist,
li.menu-item a[href*="compare"],
li.menu-item a[href*="wishlist"],
li.wp-block-pages-list__item a[href*="compare"],
li.wp-block-pages-list__item a[href*="wishlist"] {
    display: none !important;
}
li.menu-item:has(> a[href*="compare"]),
li.menu-item:has(> a[href*="wishlist"]),
li.wp-block-pages-list__item:has(> a[href*="compare"]),
li.wp-block-pages-list__item:has(> a[href*="wishlist"]) {
    display: none !important;
}

/* === END PATCH 2 === */
/* ============================================================
 *  LEO SHOP — дополнения к редизайну (PATCH 3, CSS-only)
 *  Куда: /wp-content/themes/storefront-eshop-child/style.css
 *  Дописать В САМЫЙ КОНЕЦ файла.
 *
 *  Если в style.css уже есть блок
 *     /* === LEO SHOP REDESIGN PATCH 2 ... === END PATCH 2 === */
 *  — оставьте его, ниже дополняем третьим блоком.
 * ============================================================ */

/* === LEO SHOP REDESIGN PATCH 3 (extra hide + description bottom via CSS order) === */

/* Скрыть «Перелік бажань | Порівняти» в верхнем баре / wp-block-page-list */
.wp-block-page-list a[href*="compare"],
.wp-block-page-list a[href*="wishlist"],
.wp-block-page-list a[href*="yith-compare"],
.wp-block-page-list a[href*="yith-wcwl"],
.wp-block-page-list a[href*="/compare/"],
.wp-block-page-list a[href*="/wishlist/"],
.wp-block-navigation a[href*="compare"],
.wp-block-navigation a[href*="wishlist"],
header a[href="https://www.google.com/"],
header a[href*="google.com"][rel*="noopener"] {
    display: none !important;
}

li.page-item-compare,
li.page-item-wishlist,
li.menu-item a[href*="compare"],
li.menu-item a[href*="wishlist"],
li.wp-block-pages-list__item a[href*="compare"],
li.wp-block-pages-list__item a[href*="wishlist"] {
    display: none !important;
}
li.menu-item:has(> a[href*="compare"]),
li.menu-item:has(> a[href*="wishlist"]),
li.wp-block-pages-list__item:has(> a[href*="compare"]),
li.wp-block-pages-list__item:has(> a[href*="wishlist"]) {
    display: none !important;
}

/* === Перенос описания категории / тега в самый низ страницы ЧЕРЕЗ CSS === */

/* 1. На страницах архивов делаем content-area flex-колонкой */
.tax-product_cat .content-area,
.tax-product_tag .content-area,
.post-type-archive-product .content-area {
    display: flex !important;
    flex-direction: column !important;
}

/* 2. Раскладка элементов внутри content-area:
      хлебные крошки → notices → шапка → товары → пагинация → описание */
.tax-product_cat .content-area .woocommerce-breadcrumb,
.tax-product_tag .content-area .woocommerce-breadcrumb,
.post-type-archive-product .content-area .woocommerce-breadcrumb { order: 1; }

.tax-product_cat .content-area .woocommerce-notices-wrapper,
.tax-product_tag .content-area .woocommerce-notices-wrapper,
.post-type-archive-product .content-area .woocommerce-notices-wrapper { order: 2; }

.tax-product_cat .content-area .woocommerce-products-header,
.tax-product_tag .content-area .woocommerce-products-header,
.post-type-archive-product .content-area .woocommerce-products-header { order: 3; }

.tax-product_cat .content-area .woocommerce-result-count,
.tax-product_tag .content-area .woocommerce-result-count,
.post-type-archive-product .content-area .woocommerce-result-count,
.tax-product_cat .content-area .woocommerce-ordering,
.tax-product_tag .content-area .woocommerce-ordering,
.post-type-archive-product .content-area .woocommerce-ordering { order: 4; }

.tax-product_cat .content-area ul.products,
.tax-product_tag .content-area ul.products,
.post-type-archive-product .content-area ul.products,
.tax-product_cat .content-area .products,
.tax-product_tag .content-area .products,
.post-type-archive-product .content-area .products { order: 5; }

.tax-product_cat .content-area .woocommerce-pagination,
.tax-product_tag .content-area .woocommerce-pagination,
.post-type-archive-product .content-area .woocommerce-pagination { order: 6; }

/* 3. Описание категории / тега — в самый низ */
.tax-product_cat .content-area .term-description,
.tax-product_tag .content-area .term-description,
.post-type-archive-product .content-area .term-description,
.tax-product_cat .content-area .woocommerce-products-header__description,
.tax-product_tag .content-area .woocommerce-products-header__description,
.post-type-archive-product .content-area .woocommerce-products-header__description {
    order: 99 !important;
    display: block !important;
    margin: 40px 0 20px !important;
    padding: 20px 0 !important;
    text-align: left !important;
    line-height: 1.6 !important;
    border-top: 1px solid #eee !important;
}

/* 4. Заголовок страницы — оставляем по центру, но описание выровнено по левому краю */
.tax-product_cat .content-area .term-description h1,
.tax-product_cat .content-area .term-description h2,
.tax-product_cat .content-area .term-description h3,
.tax-product_tag .content-area .term-description h1,
.tax-product_tag .content-area .term-description h2,
.tax-product_tag .content-area .term-description h3,
.post-type-archive-product .content-area .term-description h1,
.post-type-archive-product .content-area .term-description h2,
.post-type-archive-product .content-area .term-description h3 {
    text-align: left !important;
}

/* === END PATCH 3 === */
/* ============================================================
 *  LEO SHOP — PATCH 4 (доводка переноса описания + чистый топ-бар)
 *  Куда: /wp-content/themes/storefront-eshop-child/style.css
 *  Дописать В САМЫЙ КОНЕЦ файла, после Patch 3.
 * ============================================================ */

/* === LEO SHOP REDESIGN PATCH 4 === */

/* 1. Скрыть мусорные ссылки «Перелік бажань / Порівняти», ведущие на google.com */
.header-wrapper a[href*="google.com"],
.theme-header-areas a[href*="google.com"],
.header-areas-right a[href*="google.com"],
.menu-area-header-area-2 a,
.theme-header-areas .menu-area-header-area-2,
.theme-header-areas .header-areas-right a[href*="google.com"] {
    display: none !important;
}

/* 2. Делаем woocommerce-products-header «прозрачным» для layout,
      чтобы H1 и описание стали прямыми детьми .content-area
      и мой order:99 на описании реально переместил его в самый низ. */
.tax-product_cat .content-area .woocommerce-products-header,
.tax-product_tag .content-area .woocommerce-products-header,
.post-type-archive-product .content-area .woocommerce-products-header {
    display: contents !important;
}

/* 3. Подстраховка: явно задаём order вынырнувшим из header детям */
.tax-product_cat .content-area .woocommerce-products-header__title,
.tax-product_tag .content-area .woocommerce-products-header__title,
.post-type-archive-product .content-area .woocommerce-products-header__title,
.tax-product_cat .content-area h1.page-title,
.tax-product_tag .content-area h1.page-title,
.post-type-archive-product .content-area h1.page-title {
    order: 3 !important;
}

.tax-product_cat .content-area .term-description,
.tax-product_tag .content-area .term-description,
.post-type-archive-product .content-area .term-description {
    order: 99 !important;
    display: block !important;
    margin: 40px 0 20px !important;
    padding: 20px 0 !important;
    text-align: left !important;
    line-height: 1.6 !important;
    border-top: 1px solid #eee !important;
}

/* ============================================================
 *  LEO SHOP — PATCH 6 (исправление: только padding шапки,
 *  лого не трогаем — его размер задаёт Customizer)
 *
 *  ВНИМАНИЕ: перед вставкой ОБЯЗАТЕЛЬНО удалите старый блок
 *      /* === LEO SHOP REDESIGN PATCH 5 === */
/*       ...                       === END PATCH 5 === */
 *  целиком из style.css. Иначе старые правила Patch 5
 *  будут конфликтовать.
 *
 *  Куда: /wp-content/themes/storefront-eshop-child/style.css
 *  Дописать В САМЫЙ КОНЕЦ файла (после Patch 4).
 * ============================================================ */

/* === LEO SHOP REDESIGN PATCH 6 === */

/* 1. Перебиваем оставшееся жёсткое max-height: 50px из Patch 1,
      но НЕ задаём width/height — размер лого управляется
      Customizer → Айдентика сайту → «Ширина лого». */
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header .site-branding img,
.custom-logo,
.custom-logo-link img,
.site-branding img,
.site-logo img {
    max-height: none !important;
    height: auto !important;
    /* width: НЕ задаём — Customizer его сам выставит */
}

/* 2. Основная синяя полоса шапки — снимаем большой вертикальный padding
      (был 20+20 → стало 4+4) и убираем min-height. */
.header-navbar,
.header-navbar.center-header {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: 0 !important;
}

/* 3. Внутренние контейнеры шапки — без лишних отступов */
.header-titles,
.header-wrapper,
.theme-header-areas,
.site-branding,
.site-logo,
.custom-logo-link {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

/* === END PATCH 6 === */
