/*
Theme Name: Kailvex
Theme URI: https://kailvex.com/
Author: Kailvex
Author URI: https://kailvex.com/
Description: Kailvex is a fast, modern WooCommerce theme for grocery, organic food and fresh produce stores, designed by Kailvex (https://kailvex.com).
Version: 1.0.23
Requires PHP: 7.4
Tested up to: 6.6
License: ThemeForest
License URI: https://themeforest.net/licenses
Text Domain: farmas
Tags: grocery, organic food, supermarket, store, e-commerce, woocommerce
*/
/* Location block without an area list: the whole block opens the map (Freshcafe24) */
.pxl-dilivery-widget.pxl-dilivery-single { cursor: pointer; }
.pxl-dilivery-widget.pxl-dilivery-single .pxl-dilivery-main .pxl-dilivery-link { position: static; }
.pxl-dilivery-widget.pxl-dilivery-single .pxl-dilivery-main .pxl-dilivery-link:before { display: none; }
.pxl-dilivery-widget.pxl-dilivery-single .dilivery-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* Related products background: full width without a 100000px box (phones zoomed the page out to fit it) */
.single-product section.related:before { left: 50%; width: 100vw; margin-left: -50vw; }
.pxl-wapper { overflow-x: clip; }

/* Side cart: quantity controls and remove button (always visible, touch friendly) */
.pxl-widget-cart-sidebar .widget_shopping_cart .widget_shopping_cart_content ul.cart_list li, .widget_shopping_cart_content ul.woocommerce-mini-cart > li { position: relative; padding-right: 40px; }
.widget_shopping_cart_content ul.woocommerce-mini-cart .kv-unit-price { display: block; font-size: 13px; color: #727272; margin-top: 2px; }
.widget_shopping_cart_content ul.woocommerce-mini-cart .kv-unit-price small { font-size: 12px; }
.kv-mini-qty { display: flex; align-items: center; gap: 0; margin-top: 10px; flex-wrap: wrap; }
.kv-mini-qty .kv-mini-qty-btn { width: 32px; height: 32px; border: 1px solid #dfe6d8; background: #fff; color: var(--secondary-color, #223912); font-size: 18px; line-height: 1; padding: 0; cursor: pointer; transition: background 0.2s, color 0.2s; }
.kv-mini-qty .kv-mini-qty-btn:first-child { border-radius: 6px 0 0 6px; }
.kv-mini-qty .kv-mini-qty-btn[data-step="1"] { border-radius: 0 6px 6px 0; }
.kv-mini-qty .kv-mini-qty-btn:hover:not(:disabled) { background: var(--primary-color, #4D8526); border-color: var(--primary-color, #4D8526); color: #fff; }
.kv-mini-qty .kv-mini-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.kv-mini-qty .kv-mini-qty-val { min-width: 40px; height: 32px; line-height: 30px; text-align: center; border-top: 1px solid #dfe6d8; border-bottom: 1px solid #dfe6d8; font-weight: 600; color: var(--secondary-color, #223912); }
.kv-mini-qty .kv-mini-line-total { margin-left: auto; padding-left: 12px; font-weight: 700; color: var(--secondary-color, #223912); }
.kv-mini-qty.is-busy { pointer-events: none; }
.pxl-widget-cart-sidebar .widget_shopping_cart .widget_shopping_cart_content ul.cart_list a.remove_from_cart_button.kv-mini-remove, .widget_shopping_cart_content ul.woocommerce-mini-cart a.kv-mini-remove { position: absolute; top: 18px; right: 0; opacity: 1 !important; transform: none !important; width: 32px; height: 32px; line-height: 32px; border-radius: 50%; text-align: center; background: #fbeeec; color: #c0392b !important; font-size: 14px; }
.pxl-widget-cart-sidebar .widget_shopping_cart .widget_shopping_cart_content ul.cart_list a.kv-mini-remove:hover, .widget_shopping_cart_content ul.woocommerce-mini-cart a.kv-mini-remove:hover { background: #c0392b; color: #fff !important; }
.widget_shopping_cart_content ul.woocommerce-mini-cart > li.kv-removing, .widget_shopping_cart_content .blockUI ~ * { opacity: 0.5; }
.woocommerce-cart-form .product-quantity .quantity input.qty { -moz-appearance: textfield; }
.kv-mobile-cart { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #f5f8f2; color: var(--primary-color, #4D8526); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.kv-mobile-cart .pxl_cart_counter { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primary-color, #4D8526); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
@media (min-width: 1200px) { .kv-mobile-cart { display: none; } }
@media (max-width: 479px) { .kv-mobile-cart { width: 34px; height: 34px; font-size: 14px; } }

/* Product lists: the theme's 60px slide-in offset belongs only to grids hidden behind a
   "show products" button (.pxl-hide-product). On every other grid it pushed the items down,
   leaving a gap under the heading and overlapping the next section. */
.pxl-grid-inner:not(.pxl-hide-product) { transform: none; }
.pxl-grid-inner.pxl-hide-product.pxl-active-product { transform: translateY(0); }

/* Sliders on touch screens: hover-only arrows popped up over the product photo after a tap.
   Below 1200px show them centred under the slider instead. */
@media (max-width: 1199px) {
  .pxl-carousel-inner { display: flex; flex-direction: column; }
  .pxl-carousel-inner > * { min-width: 0; width: 100%; }
  .pxl-carousel-inner > .pxl-item--meta2, .pxl-carousel-inner > .pxl-swiper-arrow-wrap { order: 5; }
  .pxl-carousel-inner .pxl-swiper-arrow-wrap { display: flex; justify-content: center; gap: 14px; margin-top: 20px; }
  .pxl-carousel-inner .pxl-swiper-arrow-wrap .pxl-swiper-arrow { position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; margin: 0 !important; width: 44px; height: 44px; line-height: 44px; }
  .pxl-carousel-inner .pxl-swiper-arrow-wrap .pxl-swiper-arrow.swiper-button-disabled { opacity: 0.4 !important; }
}

/* Back-to-top: the arrow had a fixed left: 14px (made for the 46px button), so it sat
   off-centre on the 36px phone/tablet button. Centre it at any size. */
.pxl-scroll-top:before { left: 0 !important; right: 0; top: 0; width: 100%; text-align: center; line-height: inherit; }

/* Page loader: the spinner was centred inside a 0px-wide box, so it started at the screen's
   centre line instead of being centred on it. */
.pxl-loader .pxl-loader-effect .pxl-spinner1 { left: 50%; top: 50%; right: auto; bottom: auto; margin: 0; transform: translate(-50%, -50%); }

/* Hero slider "Shop now": rounded, always-visible button (slider sets inline styles, hence !important) */
sr7-module a.sr7-layer.fc-slide-btn {
  background: var(--primary-color, #4d8526) !important; color: #fff !important; border-radius: 40px !important;
  padding: 14px 34px !important; font-size: 13px !important; line-height: 18px !important; letter-spacing: 1px !important;
  box-shadow: 0 8px 20px rgba(77, 133, 38, .35); cursor: pointer; transition: background .2s, transform .2s;
}
sr7-module a.sr7-layer.fc-slide-btn:hover { background: var(--secondary-color, #223912) !important; transform: translateY(-2px) !important; }
sr7-module a.sr7-layer.fc-slide-btn .pxl--btn-text { color: #fff !important; }
sr7-module a.sr7-layer.fc-slide-btn::before, sr7-module a.sr7-layer.fc-slide-btn::after { display: none !important; }
@media (max-width: 767px) { sr7-module a.sr7-layer.fc-slide-btn { padding: 11px 24px !important; font-size: 12px !important; } }

/* Home promo banners (fish / spices / fruits): on phones and tablets the theme hid or squashed the photo.
   Show the banner picture as a cover background, text on the left, rounded button. */
@media (max-width: 1199px) {
  .elementor-element-4a01234 .pxl-item--inner, .elementor-element-08c6d71 .pxl-item--inner, .elementor-element-a9d2883 .pxl-item--inner {
    position: relative; overflow: hidden; min-height: 210px; padding: 30px 24px !important; display: flex; align-items: center; border-radius: 12px;
  }
  .elementor-element-4a01234 .background-image, .elementor-element-08c6d71 .background-image {
    display: block !important; position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
    background-size: cover !important; background-position: right center !important; opacity: 1 !important; transform: none !important; z-index: 0;
  }
  .elementor-element-4a01234 .pxl-feature-image, .elementor-element-08c6d71 .pxl-feature-image { display: none !important; }
  .elementor-element-a9d2883 .pxl-feature-image { position: absolute !important; right: 10px; top: 50%; transform: translateY(-50%) !important; width: 42%; z-index: 1; }
  .elementor-element-a9d2883 .pxl-feature-image img { width: 100% !important; height: auto !important; }
  .elementor-element-4a01234 .pxl-item--holder, .elementor-element-08c6d71 .pxl-item--holder, .elementor-element-a9d2883 .pxl-item--holder {
    position: relative; z-index: 2; max-width: 55%; text-align: left !important;
  }
  .elementor-element-4a01234 .pxl-item--title, .elementor-element-08c6d71 .pxl-item--title, .elementor-element-a9d2883 .pxl-item--title { font-size: 20px !important; line-height: 1.3 !important; margin-bottom: 14px !important; }
  .elementor-element-4a01234 .pxl-item--title { color: #fff !important; }
  .elementor-element-4a01234 .pxl-button a, .elementor-element-08c6d71 .pxl-button a, .elementor-element-a9d2883 .pxl-button a {
    display: inline-flex !important; align-items: center; gap: 6px; background: var(--primary-color, #4d8526) !important; color: #fff !important;
    border-radius: 30px !important; padding: 9px 20px !important; font-size: 12px !important; line-height: 1.2 !important; height: auto !important; width: auto !important; min-width: 0 !important;
  }
  .elementor-element-4a01234 .pxl-button a::before, .elementor-element-08c6d71 .pxl-button a::before, .elementor-element-a9d2883 .pxl-button a::before { display: none !important; }
  .elementor-element-4a01234 .pxl-button a i, .elementor-element-08c6d71 .pxl-button a i, .elementor-element-a9d2883 .pxl-button a i { color: #fff !important; }
}
@media (max-width: 1199px) {
  .elementor-element-4a01234 .pxl-item--holder, .elementor-element-08c6d71 .pxl-item--holder, .elementor-element-a9d2883 .pxl-item--holder { width: 56% !important; max-width: 56% !important; flex: 0 0 56%; }
  .elementor-element-4a01234 .pxl-item--title, .elementor-element-08c6d71 .pxl-item--title, .elementor-element-a9d2883 .pxl-item--title { white-space: normal !important; word-break: normal; }
}
@media (max-width: 420px) {
  .elementor-element-4a01234 .pxl-item--title, .elementor-element-08c6d71 .pxl-item--title, .elementor-element-a9d2883 .pxl-item--title { font-size: 18px !important; }
}

/* Home: promo card under the category list fills the space beside the slider */
@media (min-width: 1200px) {
  .elementor-element-9529d41 > .elementor-widget-wrap { display: flex; flex-direction: column; flex-wrap: nowrap; height: 100%; }
  .elementor-element-9529d41 .elementor-element-fcpromo1 { flex: 1 1 auto; display: flex; margin-top: 20px; }
  .elementor-element-9529d41 .elementor-element-fcpromo1 > .elementor-widget-container { display: flex; width: 100%; }
}
.fc-side-promo { position: relative; overflow: hidden; width: 100%; border-radius: 6px; padding: 26px 24px; color: #fff;
  background: linear-gradient(150deg, #5f9e33 0%, #4d8526 45%, #2f5a17 100%); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.fc-side-promo::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.08); }
.fc-side-promo-tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 20px; }
.fc-side-promo h3 { color: #fff; font-size: 20px; line-height: 1.3; margin: 2px 0 0; }
.fc-side-promo p { color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.5; margin: 0; }
.fc-side-promo a.fc-side-promo-call { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  background: #fff; color: #2f5a17 !important; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 30px; text-decoration: none; }
.fc-side-promo a.fc-side-promo-call:hover { background: #f1f7ec; }
.fc-side-promo a.fc-side-promo-link { position: relative; z-index: 1; color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: underline; }
@media (max-width: 1199px) { .elementor-element-fcpromo1 { margin-top: 20px; } }
@media (min-width: 1200px) {
  .fc-side-promo { padding: 16px 18px; gap: 8px; }
  .fc-side-promo h3 { font-size: 17px; line-height: 1.3; }
  .fc-side-promo p, .fc-side-promo a.fc-side-promo-link { display: none; }
  .fc-side-promo a.fc-side-promo-call { margin-top: 2px; font-size: 14px; padding: 8px 16px; }
  .elementor-element-9529d41 .elementor-element-fcpromo1 { min-height: 0; }
}

/* Shop sidebar banner: a clean card (title + button on top, photo below) instead of a stretched
   landscape image with the title printed over the photos. */
.pxl-wg-bannerbox1.widget { padding: 0 !important; background: #166078; border-radius: 10px; overflow: hidden; text-align: left; }
.pxl-wg-bannerbox1 .pxl-wg-bannerbox-inner { display: flex; flex-direction: column; }
.pxl-wg-bannerbox1 .wg-title { order: 0; margin: 0; padding: 30px 26px 0; color: #fff; text-align: left; font-size: 24px; line-height: 32px; }
.pxl-wg-bannerbox1 .btn-banner-widget { order: 1; align-self: flex-start; margin: 18px 26px 0; border-radius: 40px; background-color: #fff; color: #166078; padding: 0 28px; }
.pxl-wg-bannerbox1 .btn-banner-widget:hover { background-color: var(--primary-color); color: #fff; }
.pxl-wg-bannerbox1 .wrap-image { order: 2; position: static; margin-top: 6px; }
.pxl-wg-bannerbox1 .wrap-image img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 720 / 470; object-fit: cover; }
@media screen and (max-width: 1024px) {
	.pxl-wg-bannerbox1 .wg-title { padding: 26px 22px 0; text-align: left; font-size: 20px; line-height: 28px; }
	.pxl-wg-bannerbox1 .btn-banner-widget { margin: 14px 22px 0; }
	.pxl-wg-bannerbox1 .wrap-image img { display: block; }
}

/* Product cards with the round cart button: keep the price clear of the button. The old price sits
   before the new price; on narrow cards it moves to its own line and "price /Kg" stays together.
   Scoped with :has() so list layouts without the button (e.g. "Top Selling" lists) are untouched. */
.woocommerce-product-content:has(.woocommerce-add-to-cart):not(.layout-2 .woocommerce-product-content) { container-type: inline-size; }
.woocommerce-product-content:has(.woocommerce-add-to-cart):not(.layout-2 .woocommerce-product-content) .woocommerce-product--price:not(.woocommerce-price-list) { padding-right: 50px; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.woocommerce-product-content:has(.woocommerce-add-to-cart):not(.layout-2 .woocommerce-product-content) .woocommerce-product--price:not(.woocommerce-price-list) .price { display: contents !important; }
.woocommerce-product-content:has(.woocommerce-add-to-cart):not(.layout-2 .woocommerce-product-content) .woocommerce-product--price:not(.woocommerce-price-list) del,
.woocommerce-product-content:has(.woocommerce-add-to-cart):not(.layout-2 .woocommerce-product-content) .woocommerce-product--price:not(.woocommerce-price-list) ins { white-space: nowrap; margin: 0; }
.woocommerce-product-content:has(.woocommerce-add-to-cart):not(.layout-2 .woocommerce-product-content) .woocommerce-product--price:not(.woocommerce-price-list) del .amount { font-size: 15px; }
.woocommerce-product-content:has(.woocommerce-add-to-cart):not(.layout-2 .woocommerce-product-content) .woocommerce-product--price:not(.woocommerce-price-list) .woocommerce-product-price--unit { white-space: nowrap; margin-left: -2px; }
@container (max-width: 240px) {
	.woocommerce-product--price:not(.woocommerce-price-list) del { flex-basis: 100%; }
	.woocommerce-product-content .woocommerce-product--price:not(.woocommerce-price-list) ins .amount { font-size: 18px; }
}

/* Product photo lightbox (PhotoSwipe): the theme's generic button style (padding, background-size)
   broke the toolbar icons. Restore PhotoSwipe's 44px icon buttons. */
.pswp .pswp__button { width: 44px; height: 44px; min-width: 0; padding: 0 !important; margin: 0; border: 0; border-radius: 0; box-shadow: none; background-color: transparent !important; background-size: 264px 88px !important; transform: none !important; }
.pswp .pswp__button--close { background-position: 0 -44px !important; }
.pswp .pswp__button--share { background-position: -44px -44px !important; }
.pswp .pswp__button--fs { background-position: 0 0 !important; }
.pswp--fs .pswp__button--fs { background-position: -44px 0 !important; }
.pswp .pswp__button--zoom { background-position: -88px 0 !important; }
.pswp--zoomed-in .pswp__button--zoom { background-position: -132px 0 !important; }
.pswp .pswp__button--arrow--left, .pswp .pswp__button--arrow--right { width: 70px; height: 100px; background: none !important; }
