/*
Theme Name: Forcelab (Shoptimizer child)
Version: 1.0.0
Template: shoptimizer
Text Domain: forcelab
*/

/* ==========================================================================
   FORCELAB — обединен CSS
   Обединени сниппети (в същия ред, в който се зареждаха преди):
   1. изравняване на бутоните в продуктовите карти  (беше сниппет 68129)
   2. forcepack CSS  (беше сниппет 52768)
   3. тест начален баннер + търсачката + ЕВРОТО + hover za dogovor  (беше сниппет 47321)
   4. recpatchata местоположение бутон + текста за всички продукти  (беше сниппет 34815)
   5. css label + all CSS  (беше сниппет 31215)
   Обединено на 18.09.2026. Оригиналите остават изключени в WPCode.
   ========================================================================== */


/* ==========================================================================
   1. изравняване на бутоните в продуктовите карти
   Идва от сниппет 68129
   ========================================================================== */

/* Forcelab — одит 13.08.2026, т.4
   Бутоните "ВИЖ ПОВЕЧЕ" са на различна височина.

   Причина: Slick каруселът ползва float, .slick-track е display:block,
   затова картите излизат с различна височина (531 / 504 / 571 px).
   Проблемът не е в бутона, а в каруселa.

   !important е задължителен: slick.css слага
   .slick-initialized .slick-slide { display: block } (специфичност 0,2,0),
   което побеждава li.product (0,1,1). Без него правилото не се прилага. */

/* 1) Каруселът да разтяга слайдовете до еднаква височина */
.slick-slider .slick-track {
  display: flex !important;
  align-items: stretch;
}

.slick-slider .slick-slide {
  height: auto !important;
  float: none !important;
}

/* 2) Картата става flex колона, блокът с цената и бутона се лепи за дъното */
.slick-initialized .slick-slide.product,
ul.products li.product,
li.product {
  display: flex !important;
  flex-direction: column;
}

li.product .text-wrapper {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
}

li.product .text-wrapper .top {
  flex: 1 1 auto;
}

li.product .text-wrapper .bottom {
  margin-top: auto;
}

/* ==========================================================================
   3. Същото, но за категорийните страници, търсенето и свързаните продукти
   --------------------------------------------------------------------------
   Там картата е с ДРУГА структура — вместо .text-wrapper / .bottom има
   .woocommerce-card__header, който е display:grid с фиксирани редове
   (94px 40px 75px) и flex-grow:0. Затова не се разтяга и цената с бутона
   стоят веднага след заглавието, а не на дъното.

   Картите вече са с еднаква височина — проблемът е само вътре в тях.

   Мрежата няма gap, разстоянията идват от margin на децата, затова
   превключването към flex не променя оформлението.

   ТЕСТВАНО на живо 22.08.2026:
     категория (32 продукта)   52px -> 0
     продуктова (свързани)     40px -> 0
     търсене                   24px -> 0
     начална (карусел)         0 -> 0, непроменен
   ========================================================================== */

li.product .woocommerce-card__header {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

li.product .woocommerce-card__header .product-items {
  margin-top: auto;
}


/* ==========================================================================
   2. forcepack CSS
   Идва от сниппет 52768
   ========================================================================== */

/* Контейнер за трите блока */
.single-product .forcepack-flavors {
  margin-bottom: 10px;
}

.single-product .forcepack-flavor {
  margin-bottom: 10px;
}

.single-product .forcepack-flavor label {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #939393;
}

/* Custom dropdown wrapper */
.fl-fp-select {
  position: relative;
}

/* Видимото поле (тригера) */
.fl-fp-trigger {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #939393;
  background-color: #E9E9E9;
  padding: 8px 40px 8px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #040404;
  cursor: pointer;
  box-sizing: border-box;
}

/* стрелка вдясно */
.fl-fp-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: translateY(-60%) rotate(45deg);
}

/* падащият списък */
.fl-fp-options {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  margin: 4px 0 0;
  padding: 8px 0;
  list-style: none;
  background: #F0F0F0;
  border-radius: 20px 20px 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 20;
  box-sizing: border-box;
}

/* отворено състояние */
.fl-fp-select.is-open .fl-fp-options {
  display: block;
}

/* отделна опция */
.fl-fp-option {
  padding: 6px 18px;
  font-size: 16px;
  color: #939393;
  cursor: pointer;
	font-weight: 700;
}

.fl-fp-option:hover {
  background: transparent;
	color: #000;
	font-weight: 700;
}






/* новият label "Количество:" под селектите */
.single-product .forcepack-qty-label {
  margin: 8px 0;
  font-size: 16px;
  font-weight: 700;
	color: #939393;
	
}


.fl-fp-select.has-error .fl-fp-trigger {
  border-color: #e2401c;
}

.fl-fp-error {
  margin-top: 4px;
  font-size: 12px;
  color: #e2401c;
}


66208

/* Мини-карта – ForcePack (52766) и amino bomb + collagen(66197):
   "Label: Стойност" на един ред, всеки вкус на отделен ред */

.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="66208"]) dl.variation dt,
.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="66208"]) dl.variation dd,
.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="52766"]) dl.variation dt,
.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="52766"]) dl.variation dd,
.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="66197"]) dl.variation dt,
.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="66197"]) dl.variation dd {
  display: inline !important;
  margin: 0 !important;
}


.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="66208"]) dl.variation dd::after,
.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="52766"]) dl.variation dd::after,
.shoptimizer-mini-cart-wrap .woocommerce-mini-cart-item:has(a.remove[data-product_id="66197"]) dl.variation dd::after {
  content: "\A";
  white-space: pre;
}


/* ==========================================================================
   3. тест начален баннер + търсачката + ЕВРОТО + hover za dogovor buton che
   Идва от сниппет 47321
   ========================================================================== */

/* === MOBILE: показваме Fibosearch иконката в header-а === */
@media (max-width: 1100px) {

  /* Контейнерът за мобилната търсачка да се вижда навсякъде */
  .fl-header-search--mobile {
    display: flex !important;
    align-items: center;
    margin-right: 8px;
  }

  /* Fibosearch wrapper да не е скрит */
  .fl-header-search--mobile .dgwt-wcas-search-wrapp {
    display: block !important;
  }

  /* Скриваме desktop търсачката на по-малки екрани */
  .fl-header-search--desktop {
    display: none !important;
  }
}

/* === DESKTOP: скриваме мобилната версия === */
@media (min-width: 1101px) {
  .fl-header-search--mobile {
    display: none !important;
  }
}

/* Popup с резултатите – full width на мобилно */
@media (max-width: 768px) {
    .dgwt-wcas-suggestions-wrapp {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}









/* === 1) Нулирай тема падинги/фон за hero секцията === */
.fl-hero-wrap .hero-section.section{
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  background: none !important;
  border: 0;
}

/* 2) Full-bleed по ширина (край до край) */ 
.fl-hero-wrap{ width:100vw; position:relative; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw; }

/* === 3) Контейнер на самия слайд (.hero-section) === */
.fl-hero-wrap .hero-section.section{
  position: relative;
  width: 100%;
  height: clamp(380px, 32vw, 780px); /* адаптивна височина според ширината */
  overflow: hidden;
  background: #000; /* фон зад изображението */
}

/* === 4) Картинката да покрива (cover) независимо от оригиналните 1920px === */
.fl-hero-wrap .hero-section.section picture,
.fl-hero-wrap .hero-section.section img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Леко подобрение на рендера */
.fl-hero-wrap .hero-section.section img{
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(105%) saturate(110%);
}

/* === 5) (по желание) Текст/бутон върху изображението, ако имаш container вътре === */
.fl-hero-wrap .hero-section.section .container{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.fl-hero-wrap .wrapper-text{
  position: relative;
  z-index: 2;
}

/* Мобилна версия – показваме цялата снимка, без изрязване */
@media (max-width: 767px){
  .fl-hero-wrap .hero-section.section{
    height: auto;              /* махаме фиксираната височина */
  }

  .fl-hero-wrap .hero-section.section picture,
  .fl-hero-wrap .hero-section.section img{
    position: static;          /* вече не е absolute */
    width: 100%;
    height: auto;              /* пазим пропорцията на картинката */
    object-fit: contain;       /* за всеки случай, да не реже */
  }
}


/* === 7) Swiper – слайдовете да са винаги 100% от ширината на реда, не 1920px === */
.fl-hero-wrap .fl-hero-swiper,
.fl-hero-wrap .fl-hero-swiper .swiper-wrapper{
  width: 100% !important;
  max-width: 100% !important;
}

.fl-hero-wrap .fl-hero-swiper .swiper-slide{
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  background: transparent;
}

/* === 8) Pagination и стрелки === */
.swiper-pagination-bullet {
  width: var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,11px));
  height: var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,11px));
  display: inline-block;
  border-radius: 50%;
  background: var(--swiper-pagination-bullet-inactive-color,#000);
  opacity: var(--swiper-pagination-bullet-inactive-opacity, .8);
}

.swiper-pagination-bullet-active {
  opacity: var(--swiper-pagination-bullet-opacity, 1);
  background: var(--swiper-pagination-color,#fff);
}

.fl-hero-prev,
.fl-hero-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl-hero-prev{ left: 12px; }
.fl-hero-next{ right: 12px; }

.fl-hero-pagination{
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 10;
}




/* Secondary / informative currency (BGN in brackets) - global */
.bgn-price,
.euro-price { /* ако на места още е с този клас */
  color: #040404 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 26px !important;
  display: inline-block;
  margin-left: 1px;
  white-space: nowrap;
}


.fl-withdrawal-wrap .fl-withdrawal-btn,
.fl-withdrawal-wrap button.fl-withdrawal-btn {
    background: #111111 !important;
    color: #ffffff !important;
    border: 0 !important;
}

.fl-withdrawal-wrap .fl-withdrawal-btn:hover,
.fl-withdrawal-wrap .fl-withdrawal-btn:focus,
.fl-withdrawal-wrap button.fl-withdrawal-btn:hover,
.fl-withdrawal-wrap button.fl-withdrawal-btn:focus {
    background: #DC3C23 !important;
    color: #ffffff !important;
}

.fl-withdrawal-floating {
    display: none !important;
}


/* ==========================================================================
   4. recpatchata местоположение бутон + текста за всички продукти
   Идва от сниппет 34815
   ========================================================================== */

.comment-form .g-recaptcha {
    display: block;
    margin: 20px 0 30px 0;
    clear: both;
    max-width: 100%;
    transform: scale(1);
    transform-origin: left top;
}

.comment-form input[type="submit"],
.comment-form button[type="submit"] {
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.comment-form {
    padding-bottom: 80px;
}





/* текст за всички продукти CSS*/
.post-type-archive-product .page-description {
    display: none !important;
}

.fl-bottom-shop-text {
    border: 1px solid #e5e5e5;   /* светлосив бордер */
    background: #fff;             /* бял фон */
    border-radius: 6px;           /* леко заобляне */
	margin-bottom: 50px;
}


/* ==========================================================================
   5. css label + all CSS
   Идва от сниппет 31215
   ========================================================================== */

.custom-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e53935;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}


.woocommerce ul.products li.product .onsale {
    display: block !important;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #d9534f;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}






.custom-discount-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF4136;
    color: white;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}
.image-wrapper {
    position: relative;
}







.custom-sale-flash {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}






/* Уверете се, че контейнерите имат правилно позициониране */
.woocommerce ul.products li.product,
.woocommerce-product-gallery,
.woocommerce div.product div.images {
    position: relative;
}



.custom-coming-soon-badge,
.custom-coming-soon-flash {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF4136; /* същия цвят като sale баджа */
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}



/* ===== НОВО BADGE ===== */
.custom-new-badge,
.custom-new-flash {
    position: absolute;
    top: 50px; /* винаги под sale/coming soon баджа */
    right: 10px;
    background-color: #1565C0;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    z-index: 9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Когато е сам (без sale бадж) - върни го горе */
.custom-new-flash:first-child {
    top: 10px;
}

/* В продуктовата листа - същото */
.custom-new-badge {
    top: 50px;
}
.custom-sale-badge ~ .custom-new-badge,
.custom-discount-label ~ .custom-new-badge,
.custom-coming-soon-badge ~ .custom-new-badge {
    top: 50px;
}
/* Когато е сам в листата */
li.product:not(:has(.custom-sale-badge)):not(:has(.custom-discount-label)):not(:has(.custom-coming-soon-badge)) .custom-new-badge {
    top: 10px;
}

.awdr_free_product_text {
  display: inline-block;
  padding:0px 10px;
  background-color: #DC3C23;
  color: #fff;
  border-radius:3px;
}




/* В категория и карусел - долу вляво в снимката */
.custom-code-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #e53935;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-family: monospace;
}

.woocommerce div.product .custom-code-flash {
    display: none;
}





.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.faq-item {
  border-bottom: 1px solid #ddd;
}
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.faq-question:hover {
  background: #f2f2f2;
}
.faq-answer {
  display: none;
  padding: 0 15px 15px;
  font-size: 16px;
  color: #333;
}
.faq-item.active .faq-answer {
  display: block;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  background: #f5f5f5;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: bold;
  font-size: 18px;
  padding: 15px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.faq-question::after {
  content: "\25BC"; /* Стрелка надолу */
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  font-size: 16px;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg); /* Стрелка нагоре при отворено */
}

.faq-answer {
  display: none;
  padding: 0 15px 15px;
  font-size: 16px;
  color: #333;
}

.faq-item.active .faq-answer {
  display: block;
}













.wc-tax-total, .woocommerce-checkout-review-order-table .includes_tax {
    display: none !important;
}


.woocommerce-mini-cart__total-amount .includes_tax {
    display: none !important;
}












.fl-triple-banners__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  align-items: start;
}

/* figure.fl-banner-simple за по-висока специфичност от kirki's figure { height: 100% } */
figure.fl-banner-simple {
  height: auto !important;
  align-self: start !important;
  max-width: 350px;
  margin: 0 auto 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.fl-banner-simple__img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.fl-banner-simple__caption {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  padding: 14px 12px;
}

.fl-banner-simple__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111;
}

.fl-banner-simple__text {
  font-size: 0.95rem;
  color: #555 !important;
  margin: 0;
  display: block !important;
}

@media (max-width: 991px) {
  .fl-triple-banners__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fl-triple-banners__inner {
    grid-template-columns: 1fr;
  }
}




/* Скрий реда на темата, който смята грешно "Обща отстъпка" */
.cart-discount.total-discount,
tr.cart-discount.total-discount {
  display: none !important;
}




/*фикс за телефон поле*/
@media (min-width: 991px) {
    form.woocommerce-checkout #billing_email_field,
    form.woocommerce-checkout #billing_phone_field {
        width: 48.5% !important;
        max-width: 410px !important;
        clear: none !important;
        float: left !important;
        margin-top: 24px !important;
    }

    form.woocommerce-checkout #billing_email_field {
        margin-right: 3% !important;
    }

    form.woocommerce-checkout #billing_phone_field {
        margin-right: 0 !important;
    }

    form.woocommerce-checkout #kl_newsletter_checkbox_field {
        clear: both !important;
        width: 100% !important;
        padding-top: 24px !important;
    }
}




/*фикс за количката да при прекалено дълго име на продукт*/

@media (min-width: 769px) {
    body.m-cart .woocommerce-cart-form__cart-item .product-name {
        width: calc(100% - 180px) !important;
        max-width: calc(100% - 180px) !important;
        padding-right: 180px !important;
    }

    body.m-cart .woocommerce-cart-form__cart-item .product-name a {
        display: block !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    body.m-cart .woocommerce-cart-form .product-subtotal {
        min-width: 120px;
        text-align: right;
        justify-content: flex-end;
    }
}




@media (min-width: 769px) {

    body.m-cart .woocommerce-cart-form__cart-item {
        min-height: 220px;
    }

    body.m-cart .woocommerce-cart-form .product-subtotal {
        position: absolute;
        top: 40px !important;
        right: 16px !important;
        width: 170px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 4px !important;
    }

    body.m-cart .woocommerce-cart-form .product-subtotal del,
    body.m-cart .woocommerce-cart-form .product-subtotal ins,
    body.m-cart .woocommerce-cart-form .product-subtotal .subtotal-sale,
    body.m-cart .woocommerce-cart-form .product-subtotal .subtotal-regular {
        display: block !important;
        width: 100%;
        text-align: right;
    }

    body.m-cart .woocommerce-cart-form__cart-item .product-name {
        width: calc(100% - 220px) !important;
        max-width: calc(100% - 220px) !important;
        padding-right: 220px !important;
    }
}

/* ==========================================================================
   Чекаут – логото на BOX NOW да е колкото останалите
   Общото правило в assets/css/pages/checkout.css задава width:74px на всички
   логота. Логото на BOX NOW е почти квадратно (80x59) и при 74px става 55px
   високо, докато другите са 16-25px. Тук му задаваме височина вместо широчина.
   ========================================================================== */
form.woocommerce-checkout #customer_details .woocommerce-billing-fields .form-row label.radio .delivery-label-text img[src*="boxnow"] {
    width: auto !important;
    height: 26px !important;
}

/* Hero на телефон: точките под банера, а не върху надписа в снимката */
@media (max-width: 767px) {
  .fl-hero-wrap .fl-hero-swiper { padding-bottom: 24px; background: #fff; }
  .fl-hero-wrap .fl-hero-pagination { bottom: 7px !important; line-height: 0; }
  .fl-hero-wrap .fl-hero-pagination .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 4px !important; background: #cfcfcf; opacity: 1; }
  .fl-hero-wrap .fl-hero-pagination .swiper-pagination-bullet-active { background: #111; }
}
