/*
Theme Name:     Pixwell child
Template:      	pixwell
Theme URI:      https://tf01.themeruby.com
Author:         Theme-Ruby
Author URI:     https://themeforest.net/user/theme-ruby/portfolio/
Description:    Make your modifications to Pixwell in this child theme.
Version:        1.0
Tags:           custom-background, custom-menu, editor-style, featured-images, theme-options, custom-colors, translation-ready
License:        Themeforest Licence
License URI:    https://themeforest.net/licenses/standard
*/

/* Your CSS code goes here
-------------------------------------- */

/* Sofia Sans Extra Condensed */
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('fonts/sofia-sans-extra-condensed-v5-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('fonts/sofia-sans-extra-condensed-v5-cyrillic_latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url('fonts/sofia-sans-extra-condensed-v5-cyrillic_latin-800.woff2') format('woff2');
}

/* Bitter Regular */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/bitter-v40-cyrillic_latin-regular.woff2') format('woff2');
}

@media (max-width: 768px) {
    /* Скриваме сайдбара по подразбиране */
    aside.rbc-sidebar.widget-area {
        display: none !important;
        margin-bottom: 20px;
    }

    /* Показваме го, когато е активен */
    aside.rbc-sidebar.widget-area.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
    }

    /* Показваме и вътрешния контейнер на сайдбара */
    aside.rbc-sidebar.widget-area.active .sidebar-inner {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
    }

/* Стил за бутона "Филтри" */
.mobile-filter-button {
    display: block;
    width: 100%;
    background-color: #333333;
    color: #ffffff;
    padding: 12px;
    text-align: center;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    letter-spacing: -0.5px;
}

/* Текстът "Филтри" – визуално удължен */
.mobile-filter-button .filter-label {
    display: inline-block;
    transform: scaleY(2.4);
}

/* Стрелката – отделна, без трансформация */
.mobile-filter-button .filter-arrow {
    display: inline-block;
    transform: none;
    margin-left: 6px;
}

.mobile-filter-button:hover,
.mobile-filter-button:active {
    background-color: #4da500;
    color: #ffffff;
	}
}

@media (min-width: 769px) {
    .mobile-filter-button {
        display: none !important;
    }

    /* На десктоп винаги показваме сайдбара */
    aside.rbc-sidebar.widget-area {
        display: block !important;
    }

    aside.rbc-sidebar.widget-area.active {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .rbc-wrap.rbc-container.clearfix {
        display: flex;
        flex-direction: column;
    }

    aside.rbc-sidebar.widget-area {
        order: -1;
    }

    /* Резервира място за банера на мобилно */
    .headerstrip-desc {
        min-height: 40px;
    }

    /* Първата снимка – задаваме съотношение, за да не подскача */
    .elementor-widget-image img {
        aspect-ratio: 4 / 3;
        width: 100%;
        height: auto;
    }
}

/* Спираме JS lazy ефектите върху изображенията */
img[class*="lazy"] {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  content-visibility: visible !important;
  will-change: auto !important;
  display: block !important;
}

/* Предварително запазване на височина за основната обвивка */
@media (min-width: 768px) {
  .site-wrap {
    min-height: 100vh;
  }
}

/* Основен текст */
body {
  font-family: 'Bitter', Georgia, serif;
  font-style: normal;
  font-weight: 400;
}

/* Заглавия и бутони със Sofia Sans */
h1, h2, h3, h4, h5, h6,
button, .button, .post-title,
.widget-title, .entry-title {
  font-family: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
}

/* Фиксирано съотношение за featured images */
.wp-post-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  display: block;
}

/* Допълнително фиксиране за изображения от Pixwell */
.attachment-pixwell_370x250-2x {
  aspect-ratio: 740 / 500; /* или 370 / 250 – и двете са същото */
  width: 100%;
  height: auto;
  display: block;
}

/* === ФИКСИРАНЕ НА РАЗМЕРИТЕ НА ИЗОБРАЖЕНИЯТА В КАРЕТАТА === */

/* Основен контейнер за изображението на публикацията */
.post-box-image {
  aspect-ratio: 740 / 500;
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  position: relative;
}

/* Fallback, ако aspect-ratio не се спазва коректно */
.post-box-image::before {
  content: '';
  display: block;
  padding-bottom: 67.57%; /* 500 / 740 * 100% */
}

/* Основният текстов контейнер в карето – фиксирано, за да не подскача */
.post-box-content {
  min-height: 160px;
  padding-bottom: 10px;
}

/* За допълнителна сигурност при изображенията */
img.wp-post-image {
  display: block;
  width: 100%;
  height: auto;
}

.col-right.rb-col-d6.rb-col-m12 {
  min-height: 480px;
}

/* Принудително показване веднага на изображението, без ефекти */
.wp-post-image,
.ewww_webp_loaded {
    filter: none !important;
    scale: 1 !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

/* === LCP fix: премахване на анимации/ефекти за всички .p-feat изображения === */
.p-feat .rb-iwrap img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
}

/* === CLS Fix за Owl Carousel (слайдери) === */
/* Запазваме минимална височина, за да не подскача преди да се инициализира */
.owl-carousel,
.owl-carousel .owl-stage-outer {
  min-height: 260px; /* нагласи според най-ниското изображение в слайдера */
}

/* Фиксиране на самите елементи */
.owl-carousel .owl-item {
  min-height: 260px;
}

/* CLS Fix за зелената лента */
.rb-headerstrip {
    min-height: 40px; /* реалната височина на лентата */
}
.topline-wrap {
    min-height: 3px; /* тънката зелена черта отгоре */
}

/* Фикс за H1 hover – да не става бял */
.category-header .archive-title.category-title:hover {
  color: #000 !important;
}

/* Средно прибран category header – с малко повече отгоре */
.page-header.category-header.is-header-boxed {
  margin-top: 35px !important;   /* вместо 15px */
  padding: 10px 0 !important;    /* вместо 40px 20px 20px */
}

.page-header.category-header.is-header-boxed .header-holder,
.page-header.category-header.is-header-boxed .header-boxed-holder,
.page-header.category-header.is-header-boxed .header-content {
  padding: 0 !important;
  margin: 0 !important;
}

.page-header.category-header.is-header-boxed .archive-title.category-title {
  margin: 0 !important; /* да не вкарва допълнителен space */
}

.page-header.category-header.is-header-boxed .taxonomy-description {
  margin-top: 30px !important;
  margin-bottom: 10px !important;
}

/* Свиване на зелената лента над category header */
.rb-headerstrip {
  min-height: 30px !important; /* вместо 40px */
  padding: 0 !important;
}

.topline-wrap {
  min-height: 2px !important; /* вместо 3px */
}

/* Общ стил за контейнера */
@media (min-width: 1025px) {
  .header-wrap .rb-user-account {
    display: flex;
    align-items: center;
  }

  .header-wrap .account-link {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1em;
    height: 100%;
    cursor: pointer;
    margin-left: 7px;
    padding-left: 7px;
    position: relative;
  }

  /* вертикалната черта */
  .header-wrap .account-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 14px;
    margin-top: -7px;
    opacity: .1;
    background-color: currentColor;
  }

  /* иконка – профил (човече) */
  .rb-user-account .profile-link .account-icon i {
    color: #000;
  }
  .rb-user-account .profile-link:hover .account-icon i {
    color: #ff184e;
  }

  /* иконка – изход (svg) */
  .rb-user-account .logout-icon {
    width: 22px;
    height: 22px;
    background: url('/wp-content/themes/pixwell-child/images/exit.svg') no-repeat center center;
    background-size: contain;
    filter: brightness(0) saturate(100%);
  }
  .rb-user-account .logout-link:hover .logout-icon {
    filter: brightness(0) saturate(100%) invert(18%) sepia(98%) saturate(4923%) hue-rotate(341deg) brightness(95%) contrast(97%);
  }
}

/* --- Гост (човече черно -> червено при hover) --- */
.rb-user-account.account-guest .account-icon i {
  color: #000;
}
.rb-user-account.account-guest .account-link:hover .account-icon i {
  color: #ff184e; /* червено */
}

/* --- Логнат (човече черно -> жълто при hover) --- */
.rb-user-account.account-logged-in .profile-link .account-icon i {
  color: #000;
}
.rb-user-account.account-logged-in .profile-link:hover .account-icon i {
  color: #fcd201; /* жълто */
}

/* Профил / Изход */
/* Специално за профилните линкове */
.off-canvas-menu li.custom-profile-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important; /* премахнато разстояние между линковете */
}

/* Двата линка */
.off-canvas-menu li.custom-profile-link a.inline-link {
    font-family: 'Sofia Sans Extra Condensed', sans-serif !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    letter-spacing: -1px !important;
    text-transform: uppercase !important;
    color: #000 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Hover / активиране */
.off-canvas-menu li.custom-profile-link a.inline-link:hover,
.off-canvas-menu li.custom-profile-link a.inline-link:active,
.off-canvas-menu li.custom-profile-link a.inline-link:focus {
    color: #4da500 !important;
}

/* "/" между първи и втори линк — само ако има два линка */
.off-canvas-menu li.custom-profile-link a.inline-link:first-of-type:not(:only-of-type)::after {
    content: " / ";
    color: #000 !important;
    margin: 0 4px; /* фин контрол на разстоянието */
    font-weight: normal;
}

/* Изравняване на височината и отстоянието спрямо останалите меню елементи */
.off-canvas-menu li.custom-profile-link {
    padding: 7px 0 !important;  /* както другите */
}

.off-canvas-menu li.custom-profile-link a.inline-link {
    line-height: 1.3 !important;  /* копирано от rb-menu a > span */
}

/* Скриваме социалките само в off-canvas менюто */
.off-canvas-social {
    display: none !important;
}

/* Намаляваме само горния и долния padding на off-canvas header */
.off-canvas-header {
    padding-top: 15px !important;   /* вместо 60px */
    padding-bottom: 15px !important;/* вместо 20px */
}

/* На мобилни вместо 45px горе */
@media only screen and (max-width: 479px) {
    .off-canvas-header {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* Логото да стои прибрано */
.off-canvas-logo img {
    margin: 0 auto !important;
    display: block;
    max-height: 70px; /* можеш да коригираш */
}

/* Намаляваме вертикалния padding на off-canvas inner */
.off-canvas-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 20px !important;   /* оставяме оригиналното */
    padding-right: 20px !important;  /* оставяме оригиналното */
}



/* Разширяване на Woo login/регистрация на десктоп */
@media (min-width: 992px) {
  .woocommerce-account:not(.logged-in) .entry-content .woocommerce {
    max-width: 900px !important; /* пробвай и 960px, ако искаш повече */
    padding: 50px 40px 30px 40px; /* малко по-широко и отвътре */
  }

  .woocommerce-account:not(.logged-in) .u-columns.col2-set .u-column1,
  .woocommerce-account:not(.logged-in) .u-columns.col2-set .u-column2 {
    width: 48% !important; /* почти 50/50 */
  }
}

/* Категории под статиите */
.cat-info-el {
  font-size: 19px; !important;      /* по-голям текст */
  line-height: 1.2; !important;     /* малко въздух */
}

/* Зеленото квадратче */
.cat-info-el::before {
  width: 0.6em !important;   /* расте пропорционално със шрифта */
  height: 0.6em !important;
  margin-right: 0.4em !important;
  transform: none !important; /* игнорира наследения scaleY */
}

/* Фикс за бутоните в количката – запазва се наличния scaleY */
.woocommerce-cart .woocommerce-cart-form .actions button.button,
.woocommerce-cart.woocommerce-page .woocommerce-cart-form .coupon button {
    font-size: 19px !important;
    line-height: 1.4 !important;
    padding: 10px 20px !important;
}

/* По-голям шрифт за текста до чекбокса "Изпращане до друг адрес?" */
#ship-to-different-address-checkbox + span {
    font-size: 1rem;   /* ~16px */
    font-weight: 600;
    line-height: 1.4;
}

/* Скриване на празния top bar контейнер */
.topline-wrap:empty {
    display: none !important;
}

/* Фикс за thumbnails в навигацията под статиите */
.box-nav img.wp-post-image {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  margin-right: 12px !important;
}

/* Фиксиране на малките картинки в навигацията (предишна/следваща статия) на мобилен */
@media only screen and (max-width: 479px) {
    .box-nav img {
        display: none !important;
    }
}

/* Центриране на infeed банерите */
.infeed-outer .infeed-wrap {
  text-align: center;
}

.infeed-outer .infeed-wrap img {
  display: inline-block;
  margin: 0 auto;
}

/* === SKU под цената === */
.custom-sku-under-price {
    font-size: 17px;
    font-weight: 400;
    margin-top: 8px;
    margin-bottom: 22px;
}

.custom-sku-under-price strong {
    font-weight: 700;
    font-size: 18px;
}

/* === Скриване на старото SKU и "Категория" от .product_meta === */
.product_meta .sku_wrapper,
.product_meta .posted_in:has(> a[href*="produkt-kategoriya"]) {
    display: none !important;
}

/* === Стилизиране на реда "Марка" === */
.product_meta .posted_in {
    font-size: 16px;
    font-weight: 400;
}

.product_meta .posted_in a {
    font-weight: 700;
}

/* === Наличност в продуктовата страница === */
.woocommerce div.product .stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #fafafa;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
    min-width: 120px;
}

/* В наличност */
.woocommerce div.product .stock.in-stock {
    color: #4da500;
}

/* Изчерпан */
.woocommerce div.product .stock.out-of-stock {
    color: #dc2626 !important;
}

/* Премахваме скритата икона пред "Изчерпан" */
.woocommerce div.product p.stock.out-of-stock::before {
    content: none !important;
    display: none !important;
}

/* === Премахване на отстояние над "Марка" === */
.single-product .product_meta {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* === Подравняване и компактност на мобилен изглед === */
@media (max-width: 768px) {
    /* Центриране на основните елементи */
    .single-product .product_title,
    .single-product .price,
    .single-product .custom-sku-under-price,
    .single-product .stock,
    .single-product .product_meta {
        text-align: center !important;
    }

/* Центриран статус "Изчерпан" – перфектно подравнен */
.woocommerce div.product p.stock.out-of-stock {
    display: inline-block !important;
    background-color: #fafafa !important;
    color: #dc2626 !important;
    font-weight: 600;
    font-size: 16px;
    padding: 5px 14px;
    margin: 8px auto 10px auto !important;
    border-radius: 4px;
    text-align: center !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

    /* Намаляване на вертикалните отстояния */
    .single-product .product_title {
        margin-bottom: 10px !important;
    }

    .single-product .custom-sku-under-price {
        margin-top: 4px !important;
        margin-bottom: 12px !important;
    }

    .single-product .stock {
        margin-top: 4px !important;
        margin-bottom: 10px !important;
    }

    .single-product .product_meta {
        margin-top: 0 !important;
    }
}

/* === Стабилизиране на продуктови блокове, за да не „подскачат“ при зареждане === */
.single-product .summary,
.single-product .woocommerce-product-details__short-description,
.single-product .product_title,
.single-product .custom-sku-under-price,
.single-product .stock,
.single-product .product_meta {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* предотвратява скокове при шрифт swap */
body {
    overflow-anchor: none;
}

/* фиксирана височина на summary, за да няма reflow при цена/наличност */
.single-product .summary {
    min-height: 400px !important;
}

/* Махане на белия/светъл hover върху infeed банера */
.infeed-wrap a:hover,
.infeed-wrap:hover {
    background: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.infeed-wrap a::before,
.infeed-wrap::before,
.infeed-wrap a::after,
.infeed-wrap::after {
    display: none !important;
    background: none !important;
    content: none !important;
}

.infeed-wrap a:hover img {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.infeed-wrap * {
    transition: none !important;
}



/* -------- Подкатегории – стил на списъка -------- */

/* --- Рамка мобилен --- */
.balkonche-subcats-box {
    border: 1px solid #e5e5e5;
    padding: 15px 20px;
    margin: 30px 0 40px 0;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Вътрешният контейнер — центриран */
.balkonche-subcats-inner {
    width: max-content;      /* ширината да е колкото съдържанието */
    margin: 0 auto;          /* ← център */
}

/* --- Рамка десктоп --- */
@media (min-width: 768px) {
    .balkonche-subcats-box {
        width: 70%;
        max-width: 450px;
        margin: 30px auto 40px auto;
    }
}

/* Основни категории */
.balkonche-subcat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-size: 22px;
    font-weight: 600;
    transform: scaleY(1.2);
    text-decoration: none;
    color: #222;
    margin-bottom: 8px;
}

.balkonche-subcat-row:hover {
    color: #4da500;
}

/* Зеленото квадратче */
.balkonche-subcat-row .green-square {
    width: 10px;
    height: 10px;
    background-color: #4da500;
    display: inline-block;

    /* не се разтяга */
    transform: scaleY(1) !important;
}

/* Под-подкатегории */
.balkonche-subcat-row.child {
    padding-left: 28px;
    transform: scaleY(1.1);
}

.balkonche-subcat-row.child:hover {
    color: #4da500;
}

/* Текущата категория – жълто квадратче */
.balkonche-subcat-row.current .green-square {
    background-color: #fdd201 !important;
}

/* Текущата категория – фиксиран стил */
.balkonche-subcat-row.current {
    transform: scaleY(1.1); /* същото като основните */
    font-weight: 600;
	font-size: 22px;
}

/* Без hover */
.balkonche-subcat-row.current:hover {
    color: #222 !important;
}

/* Махаме стрелката */
.balkonche-subcat-row.current .arrow-current {
    display: none !important;
}

/* --- ФИКС: квадратчетата винаги са идеални 12x12 --- */
.balkonche-subcat-row .green-square {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    display: inline-block !important;
}

/* --- ФИКС: еднакъв шрифт за всички редове, включително current --- */
.balkonche-subcat-row,
.balkonche-subcat-row.current {
    font-weight: 600 !important;
}

/* Да уеднаквим <div class="current"> с <a> елементите */
.balkonche-subcat-row.current {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    font-family: 'Sofia Sans Extra Condensed', sans-serif !important;
    transform: scaleY(1.1) !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
}

.balkonche-subcat-row .green-square {
    transform: none !important;
}

/* 100% фиксирано еднакво отстояние след current */
.balkonche-subcat-row.current + .child {
    margin-top: 12px !important;
}

.balkonche-subcats-inner {
    padding-top: 12px;
    padding-bottom: 0;
    margin-bottom: -1px;
}

/* Скриваме само H1 заглавието на страницата с ID 931 (Магазинче) */
.page-id-931 .single-page-header.entry-header {
    display: none !important;
}

/* Премахва всички заоблени ъгли само на TOC контейнера */
#ez-toc-container,
#ez-toc-container * {
    border-radius: 0 !important;
}

#ez-toc-container .ez-toc-js-icon-con {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* SINGLE POST – центрирано featured image + правилен overlay caption */
@media (min-width: 1025px) {

    .single-feat {
        display: flex !important;
        justify-content: center !important;
        position: relative !important;
    }

    .single-feat .rb-iwrap.autosize {
        max-width: 780px !important;
        width: 100% !important;
        position: relative !important;
    }

    .single-feat .rb-iwrap.autosize img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 0 !important;
    }

    /* CAPTION – същият, просто с добавено отстояние вдясно */
    .single-feat .image-caption.is-overlay {
        position: absolute !important;
        bottom: 10px !important;
        right: 10px !important;

        /* >>> ТОВА Е ДОБАВЕНО <<< */
        margin-right: 191px !important;
        /* ↑ можеш да го смениш на 15px / 30px / 50px */

        display: inline-block !important;
        width: auto !important;
        max-width: 70% !important;

        background: rgba(0,0,0,0.75) !important;
        color: #fff !important;

        padding: 6px 12px !important;
        line-height: 1.35 !important;

        text-align: left !important;
        white-space: normal !important;

        border-radius: 0 !important;
        box-sizing: border-box !important;
    }
}


/* ВАРИАЦИИ */
.product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    max-width: calc(6 * 40px + 5 * 2px);
    margin-bottom: 10px;
}

/* Една разновидност */
.product-variants .variant {
    width: 40px;
    text-align: center;
    text-decoration: none;
}

/* Кутията */
.product-variants .variant img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #EFEFEF;
    border-radius: 2px;
    display: block;
    box-sizing: border-box;
}

/* Активен продукт */
.product-variants .variant.active img {
    border-color: #000;
}

/* Hover */
.product-variants .variant:not(.active):hover img {
    border-color: #000;
}

/* Надпис */
.product-variants .variant-label {
    display: block;
    margin-top: 2px;
    font-family: "Bitter", serif; /* твоят шрифт */
    font-size: 11px;
    line-height: 1.1;
    color: #000;
    white-space: nowrap;
}

/* tooltip контейнер */
.product-variants .variant {
    position: relative;
}

/* tooltip балон */
.product-variants .variant::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;

    background: #000;
    color: #fff;
    font-family: Bitter, serif;
    font-size: 12px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 3px;

    white-space: nowrap;
    pointer-events: none;

    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
    z-index: 10;
}

/* стрелката */
.product-variants .variant::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -1px;

    border-width: 6px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;

    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
    z-index: 9;
}

/* показване */
.product-variants .variant:hover::after,
.product-variants .variant:hover::before {
    opacity: 1;
    visibility: visible;
}

/* повече въздух под вариантите */
.product-variants {
    margin-bottom: 20px;
}

.product-variants {
    padding-bottom: 4px;
}


/* =========================================================
	Поправки по Галерията: Подравняване на снимки.
   ========================================================= */

/* Ensure images behave consistently */
.woocommerce-product-gallery__image img {
    object-fit: contain;
    display: block;
}


/* FIX: remove forced aspect ratio from first (featured) image */
.woocommerce div.product div.images img.wp-post-image {
    aspect-ratio: auto !important;
}



/* =========================================================
	Поправки по Галерията: Намаляване на размера на тъмбн.
   ========================================================= */
@media (max-width: 991px) {

  .woocommerce div.product div.images .flex-control-thumbs img {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
  }

}

/* =========================================================
   Поправки по Галерията: Тъмбнейли отстояние
   ========================================================= */
@media (max-width: 991px) {

  .woocommerce div.product div.images .flex-control-thumbs li {
    width: 16.666% !important;   /* 6 на ред */
    float: left !important;
    padding: 0 0px 5px 2px !important;
  }

}

/* Prev / Next – само < и > */
.rb-pagination .prev.page-numbers,
.rb-pagination .next.page-numbers {
    font-size: 0;
}

.rb-pagination .prev.page-numbers::after {
    content: "<";
    font-size: 16px;
}

.rb-pagination .next.page-numbers::after {
    content: ">";
    font-size: 16px;
}

/* Изравняване на pagination бутоните */
.rb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0;
}

/* Active / hover да не променят размера */
.rb-pagination .page-numbers.current,
.rb-pagination .page-numbers:hover {
    min-width: 36px;
    height: 36px;
    line-height: 36px;
}

/* Стрелките < > */
.rb-pagination .prev.page-numbers::after,
.rb-pagination .next.page-numbers::after {
    line-height: 36px;
	font-size: 22px;
}

/* Визуално изравняване на стрелките */
.rb-pagination .prev.page-numbers,
.rb-pagination .next.page-numbers {
    vertical-align: middle;
    transform: translateY(-1px);
}

/* Pagination – уеднаквяване на шрифта с останалия сайт */
.rb-pagination,
.rb-pagination .page-numbers {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    font-weight: 700;
    transform: scaleY(1.05);
    letter-spacing: -0.5px;
	font-size: 18px;
}

/* Оправяне на знака за евро в продуктова страница */
.woocommerce.single .summary .price .woocommerce-Price-currencySymbol {
    font-size: 1em;
    padding-left: 4px;
    vertical-align: baseline;
}

/* Махаме "с вкл. ДДС" само при up-sells и related продукти в продуктова страница */
.up-sells .price .woocommerce-price-suffix,
.related .price .woocommerce-price-suffix {
    display: none;
}

/* Подреждаме правилно валутите в mini cart Междинна сума */
.woocommerce-mini-cart__total {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.woocommerce-mini-cart__total .woocommerce-Price-amount {
    order: 1;
}

.woocommerce-mini-cart__total .amount-bgn {
    order: 2;
}

/* Нормализираме € в mini cart (размер + подравняване) */
.woocommerce-mini-cart__total .woocommerce-Price-amount,
.woocommerce-mini-cart__total .woocommerce-Price-amount bdi {
    display: inline-flex;
    align-items: baseline;
}

.woocommerce-mini-cart__total .woocommerce-Price-currencySymbol {
    font-size: 1em !important;
}

/* Заглавие на блока с клиентска информация */

.balkonche-product-info-title{
font-weight:700;
margin-bottom:10px;
font-size:16px;
}

/* Подравняване на текста в менюто */
.main-menu > li > .sub-menu:not(.sub-mega) a {
    display: inline-flex !important;
    align-items: center !important;
}

/* ВСИЧКИ вътрешни подредени наляво */
.main-menu .sub-menu .sub-menu {
    right: 100% !important;
    left: auto !important;
}

/* текстът да не мърда */
.main-menu .sub-menu a > span {
    left: 0 !important;
}

/* стрелката да се държи като при left-direction */
.main-menu .sub-menu .menu-item-has-children > a::after {
    display: inline-block !important;
    margin-left: -22px !important;
    margin-right: 4px;
    transform: rotate(180deg);
    vertical-align: middle;
    order: -1;
}