/*

Theme Name: Porto

Theme URI: https://www.portotheme.com/wordpress/porto

Author: P-THEMES

Author URI: https://www.portotheme.com/

Description: Porto Responsive Wordpress Multi Purpose + eCommerce Theme.

Version: 7.4.5

License: GNU General Public License version 3.0

License URI: http://www.gnu.org/licenses/gpl-3.0.html

Tags: woocommerce, business, corporate, e-commerce, blog, news, education, food-and-drink, portfolio, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-styles, custom-background, custom-colors, custom-header, custom-logo, footer-widgets, template-editing, grid-layout, one-column, wide-blocks

Text Domain: porto

*/



/*************** ADD YOUR CUSTOM CSS HERE  ***************/

#header .main-menu > li.menu-item > a {
    font-family: nunito, sans-serif !important;
    text-transform: math-auto;
    font-size: 16px !important;
}


.mega-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
/*
#menu-main-menu li {
    display: inline-block;
    position: relative;
    padding: 0 10px;
}

#menu-main-menu li + li::before {
    content: "|";
    color: #E7E7E7; 
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    line-height: 1;
}*/



/* --------------- gabinet / konsultacja  ikony ------------ */

/* === BAZOWE STYLE DLA ETYKIET KÓŁEK === */
/* Wrapper poziomy dla etykiety + kółka */
.price-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    position: relative;
    flex-wrap: nowrap;
}

/* Odznaki kółek GB / KN – bez absolute! */
.gb-badge,
.kn-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #47a447;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kn-badge {
    background-color: #a10000;
}

/* Teksty */
.konsultacja,
.gabinet {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: 'Arial', sans-serif;
    line-height: 1.2;
}

/* Kolory */
.konsultacja {
    color: #a10000;
    border-color: #a1000038;
}

.gabinet {
    color: #47a447;
    border-color: #47a44761;
}

/* Responsive – mniejsze badge na mobile */
@media (max-width: 991px) {
    .gb-badge,
    .kn-badge {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

      .gb-badge,
    .kn-badge {
        display: none !important;
    }

    .price-badge-wrapper {
        gap: 6px;
        flex-wrap: wrap;
    }
}


.woocommerce-button.button.view.order-actions-button {
    color: #fff !important;
}

/* --------------- gabinet / konsultacja  ikony ------------ */

.footer-wrapper > h4.elementor-heading-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 2em;
    letter-spacing: 0px;
    color: #B5A27C;
    border-bottom: 1px solid #777777 !important;
}


.elementor-1191 .elementor-element.elementor-element-9fffe1f .elementor-heading-title, .elementor-1191 .elementor-element.elementor-element-50da77b .elementor-heading-title, .elementor-1191 .elementor-element.elementor-element-0a02b50 .elementor-heading-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 2em;
    letter-spacing: 0px;
    color: #B5A27C;
    border-bottom: 1px solid #48494d;
}

.woocommerce-page .sidebar-content ul {
    font-size: 1em;
    font-weight: 500;
    letter-spacing: -0.03em;
    background: #f7f7f7;
    padding: 20px;
    /* border-bottom: 1px solid; */
}

.bypostauthor { display: block; }

.wpcbn-btn.wpcbn-btn-single.wpcbn-btn-simple.single_add_to_cart_button.button.alt {
    display: none !important;
}

.woocommerce .star-rating {
    display: none !important;
}


#header .elementor-element-fc8618e .top-links > li.menu-item > a, #header .elementor-element-fc8618e .main-menu > li.menu-item > a, #header .elementor-element-fc8618e .menu-custom-block a, #header .elementor-element-fc8618e .menu-custom-block span, .elementor-element-fc8618e .sidebar-menu>li.menu-item>a {
    padding: 24px 0px 25px 0px;
    text-transform: uppercase;
}

#footer ul li {
border-bottom: 1px solid #FFFFFF1A;
padding: 0px 0px 5px 0px;
}

#footer h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 700 !important;
    letter-spacing: 2px;
}



.woocommerce-page .sidebar-content ul li a {
    line-height: 2em;
    color: #000000;
}

.woocommerce-page .sidebar-content ul li a:hover, .woocommerce-page .sidebar-content ul li.current>a {
    color: #c27081;
}


/* Ogólne style dla komunikatów .status */
form.woocommerce-form-login .status {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Komunikat błędu – czerwona ramka */
form.woocommerce-form-login .status:not(.success) {
    border: 2px solid #e53935;
    background-color: #ffe6e6;
    color: #b71c1c;
}

/* Komunikat sukcesu – zielona ramka */
form.woocommerce-form-login .status.success {
    border: 2px solid #43a047;
    background-color: #e6f4ea;
    color: #1b5e20;
}

@media (max-width: 991px) {
  /* Domyślnie ukryj menu mobilne */
  #side-nav-panel {
    display: none !important;
  }

  /* Pokazuj menu tylko gdy aktywne */
  html.panel-opened #side-nav-panel {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 9999 !important;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(0) !important;
  }

  /* Tło maski - widoczne tylko gdy panel otwarty */
  .panel-overlay {
    display: none !important;
  }

  html.panel-opened .panel-overlay {
    display: block !important;
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
  }

  /* Przy otwartym menu blokuj scrollowanie strony */
  html.panel-opened {
    overflow: hidden;
  }

  /* Styl krzyżyka (zamknij) */
  .side-nav-panel-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    z-index: 10000;
    color: #333;
  }

  .side-nav-panel-close::before {
    content: "✖";
  }
}


@media (max-width: 991px) {
  /* Domyślnie ukryty */
  .side-nav-panel-close {
    display: none !important;
  }

  /* Widoczny tylko przy otwartym menu */
    html.panel-opened .side-nav-panel-close {
        display: block !important;
        position: fixed !important;
        top: 10px;
        right: 10px;
        font-size: 16px;
        line-height: 1;
        z-index: 99999 !important;
        color: #000 !important;
        background: transparent;
        border: none;
        padding: 4px;
        opacity: 1 !important;
        visibility: visible !important;
    }

  #side-nav-panel .searchform {
    margin-top: 35px;
}

  html.panel-opened .side-nav-panel-close::before {
    content: "✖";
    color: #000;
    font-weight: normal;
  }
}


/* Pasek filtrów */

@media (max-width: 991px) {
  /* Sidebar na całą szerokość tylko gdy otwarty */
  html.sidebar-opened .sidebar.mobile-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    padding: 20px;
    transform: translateX(0) !important;
    box-shadow: none !important;
  }

  /* Krzyżyk (toggle zamknięcia) */
    html.sidebar-opened .sidebar-toggle {
        position: absolute;
        top: -60px;
        right: 12px;
        z-index: 10000;
        font-size: 16px;
        color: #000;

        border: none;
    }

  /* Upewnij się, że ikona ma pointer i kolor */
  html.sidebar-opened .sidebar-toggle i {
    cursor: pointer;
    color: #000;
  }

  /* Opcjonalnie – miejsce na treść pod krzyżykiem */
  html.sidebar-opened .sidebar-content {
    margin-top: 60px;
  }
}
div.asp_nores {
    border: 2px solid red;
    background-color: #ffe5e5;
    color: #c10000;
    padding: 10px 15px;
    margin: 10px;
    border-radius: 6px;
    font-weight: bold;
}

#main {
  display: flex;
  flex-wrap: wrap;

}


/*
.sidebar,
#secondary {
  position: relative !important;
  z-index: 1;
}
  */
.mobile-sidebar-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
@media screen and (max-width: 768px) {
  .mobile-sidebar-toggle,
  .mobile-sidebar-toggle:focus,
  .mobile-sidebar-toggle:active {
    all: unset !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
  }

  .mobile-sidebar-toggle svg,
  .mobile-sidebar-toggle i {
    color: inherit !important;
    box-shadow: none !important;
  }
}

.footer-wrapper {
  clear: both;
}

div.asl_r .results .item .asl_content {
    overflow: hidden;
    height: auto;
    background: transparent;
    margin: 0;
    padding: 3px 3px 5px 3px;
    display: flex
;
    align-items: center;
}

.autocomplete-suggestion .search-sku {
  display: none !important;
}
body.search .product .sku,
body.search .product .product-sku {
  display: none !important;
}

/* UX */

@media (max-width: 991px) {
  html.sidebar-opened,
  html.mobile-sidebar-opened {
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transition: none !important;
  }

  /* Jeśli motyw nadal dodaje style inline — nadpisz je także tu */
  html[style*="transform"] {
    transform: none !important;
  }
}

html[style*="translateX"],
body[style*="translateX"],
html[style*="margin-left"],
body[style*="margin-left"] {
  transform: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}




.custom-coupon-box {
    background-color: #f1f8ff;
    border: 2px dashed #0073aa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0; /* Równy margines góra i dół */
    font-size: 15px;
    text-align: center;
}

.woocommerce-form-coupon-toggle.mb-4 {
    margin-bottom:0px !important;
}

.checkout_coupon p {
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

form.checkout_coupon {
    padding-left: 5px;
    padding-bottom: 5px;
    margin-top: 20px;
}

.checkout_coupon input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 250px;
    font-size: 14px;
}

.checkout_coupon .button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.checkout_coupon .button:hover {
    background-color: #353a40;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}




.woocommerce-error {
    background-color: #fdecea;
    border: 1px solid #e02b2b;
    color: #a60000;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.woocommerce-error li {
    list-style: none;
    margin: 0;
}

.woocommerce-cart .woocommerce-error {
    max-width: 100%;
    margin-left: 0;
}

.woocommerce-cart .woocommerce-error {
    background-color: #fdecea;
    border: 1px solid #e02b2b;
    color: #a60000;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.4;
    max-width: 100%;
    display: block;
}

.woocommerce-cart .woocommerce-error li {
    list-style: none;
    margin: 0;
    padding: 0;
}


.coupon {
    display: none !important;
}

.breadcrumbs-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    position: relative;
}

.breadcrumbs-wrap::-webkit-scrollbar {
    height: 6px;
}

.breadcrumbs-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.breadcrumbs-wrap ul.breadcrumb {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-width: max-content;
}

.breadcrumbs-wrap li {
    white-space: nowrap;
}

#header .main-menu > li.menu-item > a {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -0.16px;
    color: #222529;
    padding: 16px 0 16px 0 !important;
}


.mega-menu.menu-hover-line:not(:hover)>li.menu-item.active>a:before, .mega-menu.menu-hover-line>li.menu-item:hover>a:before {
    opacity: 1;
    display:none !important;
}
.custom-menu .mega-menu.menu-hover-underline>li.menu-item>a:before {
    margin-top: 11px;
        display:none !important;
}
.mega-menu.menu-hover-underline > li.menu-item > a:before {
    margin-left: 0;
    margin-right: 0;
     display:none !important;
}
.mega-menu.menu-hover-underline>li.menu-item>a:before {
    top: 50%;
    margin-top: 15px;
    width: auto;
    left: 0;
    right: 15px;
    transition: cubic-bezier(0.55,0,0.1,1) right 0.3s, opacity 0.3s;
     display:none !important;
}


/* Upewnij się, że nagłówek nie blokuje menu */
header .container,
header .elementor-container,
.header-main-menu {
    overflow: visible !important;
    /*z-index: 999 !important;*/
    position: relative !important;
}



/* Naprawa submenu (drugiego poziomu) */
#main-menu .sub-menu {
    position: absolute !important;
    z-index: 1999 !important;
    display: block !important;
    visibility: visible !important;
}



/* Czasem nadrzędny wrapper Porto blokuje */
#header,
#main {
    overflow: visible !important;
    z-index: auto !important;
}




@media (max-width: 767px) {
  .side-nav-panel .menu-wrap #ajaxsearchlite1 {
    all: unset;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important;
    margin: 0 auto !important;
  }

  .side-nav-panel .menu-wrap #ajaxsearchlite1 .asp_w_container,
  .side-nav-panel .menu-wrap #ajaxsearchlite1 .probox {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .side-nav-panel .menu-wrap #ajaxsearchlite1 .proinput input.orig {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 6px !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    font-size: 16px !important;
    background: #fff !important;
  }

  /* Debug kolor */
  .side-nav-panel .menu-wrap #ajaxsearchlite1 {
    background: rgba(255, 0, 0, 0.05);
  }
}



/* Przenieś modal z dołu do góry */
.woocommerce-message,
.success-message-container,
.added_to_cart_popup,
.woocommerce-mini-cart__popup,
body .woocommerce-message.success {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 99999 !important;
  margin: 0 !important;
  animation: fadeInDown 0.3s ease;
}

/* Zapewnij czytelne tło */
.success-message-container {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 20px;
  max-width: 300px;
}

/* Animacja (opcjonalna) */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.order-again .button:hover, .wc-action-btn.button:hover {
    background: #c27081 !important;
}

@media screen and (max-width: 768px) {
  .woocommerce-breadcrumb,
  .breadcrumb,
  .breadcrumbs-wrap,
  .page-header .breadcrumb {
    overflow-x: auto !important;
    white-space: nowrap !important;
    display: block;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .page-header-8 li .delimiter.delimiter-2 {
    color: #222529;
    font-size: 1.275rem;
    font-weight: 700;
    margin: 0 0.5rem;
    float: left;
}

  .page-header-8 li a {
    color: #222529;
    font-family: 'Poppins', Nunito, sans-serif;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.03em;
    transition: opacity .3s;
    vertical-align: middle;
}

  .woocommerce-breadcrumb li,
  .breadcrumb li,
  .breadcrumb > li {
    display: inline-block;
    margin-right: 1rem;
    white-space: nowrap;
  }
}

@media screen and (max-width: 768px) {
    .woocommerce-breadcrumb li, .breadcrumb li, .breadcrumb > li {
        display: inline-block;
        margin-right: 0rem;
        white-space: nowrap;
    }
}


/* dołożone */

/* Domyślnie menu z niższym z-index */
#header {
  position: relative !important;
  z-index: 100 !important;
}

#header .menu-item-has-children {
  position: relative !important;
  overflow: visible !important;
  z-index: auto !important;
}

#header .menu-item-has-children > ul.sub-menu {
  position: absolute !important;
  z-index: 1 !important;
  top: 100% !important;
  left: 0 !important;
  display: none !important;
}

/* Tylko przy hover dajemy wysoki z-index */
#header .menu-item-has-children:hover {
  z-index: 9999 !important;
}

#header .menu-item-has-children:hover > ul.sub-menu {
  display: block !important;
  z-index: 9999 !important;
}


.mobile-sidebar .sidebar-toggle:hover
 {
    color: var(--porto-primary-color);
    box-shadow: none !important;
}



@media (max-width: 575.98px) {
    .elementor-element-aa95bf7 {
        display: block !important;
    }

    .elementor-447 .elementor-element.elementor-element-cf34677.elementor-column.elementor-element[data-element_type="column"] > .elementor-widget-wrap.elementor-element-populated {
    align-content: center;
    align-items: center;
    display: contents !important;
}

#mini-cart .cart-subtotal {
    font-size: 0.54em;
    font-weight: 600;
    text-align: left;
    line-height: 1.2;
    display: none;
}
}

.product_title.show-product-nav {
    width: calc(100% - 62px) !important;
}


.wc-close-message {
    float: right;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0 10px;
}


.tb-woo-price .price {
    display: flex !important;
    flex-direction: column !important;
    justify-content: end !important;
}

.msg-close {
    color: #900;
    font-weight: bold;
    transition: 0.3s;
}
.msg-close:hover {
    color: #000;
}


.minicart-popup.widget_shopping_cart {
  max-height: 100vh; /* dopasuj do wysokości okna */
  overflow-y: auto; /* umożliwia przewijanie */
  -webkit-overflow-scrolling: touch; /* płynny scroll w iOS */
  overscroll-behavior: contain;
  padding-bottom: 20px; /* miejsce na przyciski */
}


body.minicart-open {
  overflow: hidden !important;
}

body.minicart-open .minicart-popup.widget_shopping_cart {
  overflow-y: auto !important;
}


.minicart-popup.widget_shopping_cart {
  padding-bottom: calc(env(safe-area-inset-bottom) + 24px); /* miejsce na dolny pasek + odstęp */
  box-sizing: border-box;
}




/* Przycisk Zobacz koszyk + Zamówienie zawsze nad paskiem systemowym */
.minicart-popup .woocommerce-mini-cart__buttons {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); /* uwzględnia dynamic island / gesty */
  background: white;
  padding-top: 10px;
  padding-bottom: 10px;
  z-index: 99;
}


/* Ustaw maksymalną wysokość i scroll dla całego kontenera koszyka */
.widget_shopping_cart_content {
  height: 100vh; /* dopasuj 120px do realnej wysokości przycisków */
  overflow-y: auto;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

/* Przyklej dolne przyciski nad paskiem systemowym */
.woocommerce-mini-cart__buttons {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: #fff;
  z-index: 10;
  padding: 10px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

/* Upewnij się, że kontener przycisków nie znika */
.woocommerce-mini-cart__buttons .button {
  width: 100%;
  margin-bottom: 10px;
}



/* Dodaj safe-area-inset-bottom do wszystkich popupów */
body .mfp-wrap,
body .popup,
body .mfp-content,
body .modal,
body .porto-popup,
body .elementor-popup-modal,
body .woocommerce-mini-cart,
body .woocommerce-message {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
