/* Top Bar */
.pp-topbar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.pp-topbar-scroll .pp-topbar-slider {
    display: flex;
    animation: scroll var(--scroll-speed, 20s) linear infinite;
    width: max-content;
}

.pp-topbar-scroll.pp-scroll-right .pp-topbar-slider {
    animation-direction: reverse;
}

.pp-topbar-scroll .pp-topbar-slide {
    flex-shrink: 0;
    padding: 0 40px;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-5%); /* 1/20th because we repeat 20 times */
    }
}

.pp-topbar.pp-topbar-scroll {
    justify-content: flex-start;
}

.pp-topbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.pp-topbar-scroll .pp-topbar-content {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Topbar rich text styling */
.pp-topbar-slide p {
    display: inline;
    margin: 0;
}

.pp-topbar-slide strong,
.pp-topbar-slide b {
    font-weight: bold;
}

.pp-topbar-slide em,
.pp-topbar-slide i {
    font-style: italic;
}

.pp-topbar-slide a {
    color: inherit;
    text-decoration: underline;
}


/* Hero Section */
body .pp-hero {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center !important;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    text-align: left;
    padding: 10px 50px 50px 50px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.1s forwards;
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pp-hero-content {
    text-align: left;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 40px 40px 40px;
    max-width: 45%;
    width: 100%;
    height: 100%;
}

.pp-hero-logo {
    margin-bottom: 25px;
    display: block;
    max-width: 150px !important;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.pp-hero-heading {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin-bottom: 12px;
    font-weight: 900;
    color: #333;
    line-height: 1.05;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.pp-hero-text {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    margin-bottom: 20px;
    color: #333;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Hero rich text styling */
.pp-hero-text p {
    margin-bottom: 1em;
}

.pp-hero-text p:last-child {
    margin-bottom: 0;
}

.pp-hero-text strong,
.pp-hero-text b {
    font-weight: bold;
}

.pp-hero-text em,
.pp-hero-text i {
    font-style: italic;
}

.pp-hero-text ul,
.pp-hero-text ol {
    margin: 1em 0;
    padding-left: 2em;
}

.pp-hero-text li {
    margin-bottom: 0.5em;
}

.pp-hero-text a {
    text-decoration: underline;
}

.pp-hero .pp-hero-btn.button,
.pp-hero-btn {
    display: inline-block !important;
    padding: 8px 20px !important;
    background-color: #d89f5a;
    color: #ffffff;
    border: 2px solid #d89f5a;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
    text-transform: uppercase;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    position: relative;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    line-height: 1.5;
}

.pp-hero-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* Desktop Hero (1024px+) */
@media (min-width: 1024px) {
    .pp-hero .pp-hero-content {
        width: 100%;
        justify-content: center;
    }
    
    .pp-hero .pp-hero-heading {
        font-size: 3rem;
        color: #493121;
        margin-top: 4rem;
    }
    
    .pp-hero-heading {
        font-size: 3rem; 
        /* Kept for specificity fallback, though overridden by block above if same selector weight */
    }

    .pp-hero-logo {
        position: absolute;
        top: 2rem;
    }
}

/* Mobile Hero */
@media (max-width: 768px) {
    body .pp-hero {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        background-position: top !important;
        background-size: cover;
        background-color: #e8eef3;
        padding: 0;
    }
    
    .pp-hero-content {
        text-align: center;
        align-items: center;
        padding: 20px 15px;
        max-width: 100%;
        margin-top: auto;
        width: 100%;
        justify-content: flex-end; /* Added to push content down if needed, like popup */
    }
    
    /* User requested logo ON for mobile in new snippet with absolute positioning */
    .pp-hero-logo {
        display: block !important;
        max-width: 150px !important;
        position: absolute !important;
        top: 2rem !important;
        margin-bottom: 25px;
        opacity: 0; /* Animation handles opacity */
    }
    
    .pp-hero-heading {
        font-size: 1.5rem;
        text-align: center;
        color: #333;
    }
    
    .pp-hero .pp-hero-text {
        font-size: 0.95rem;
        text-align: center;
        color: white !important;
        text-shadow: 1px 1px black;
    }
    
    .pp-hero-btn {
        font-size: 0.95rem;
        padding: 12px 24px;
    }
}

/* Popup */
.pp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.pp-popup-container {
    position: relative;
    background: #e8eef3;
    max-width: 370px !important;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10001;
    background-size: contain !important; /* Forces contain as requested */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    /* max-height: 660px;  From snippet, optional but good safety */
}

/* Product badge overlay */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

.pp-product-badge {
  position: relative;
  top: 0;
  left: 0;
  padding: 5px 10px;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 999;
  line-height: 1;
  background-color: #283a2c;
  color: #ffffff;
}

/* Single product badge positioning */
.woocommerce div.product,
.woocommerce-page div.product {
    position: relative;
}
.pp-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #d89f5a;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    z-index: 10002;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s;
}

.pp-popup-close:hover {
    filter: brightness(0.85);
}

.pp-popup-content {
    text-align: center;
    position: relative;
    padding: 0;
    padding-bottom: 1rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.pp-popup-text-content {
    background-color: rgba(0,0,0,0) !important;
    padding: 5px !important;
    border-radius: 0 0 20px 20px;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: none;
}

.pp-popup-logo {
    max-width: 150px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.pp-popup-heading {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 900;
    color: #333;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.pp-popup-text {
    font-size: 1em;
    margin-bottom: 25px;
    color: #333;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

/* Popup rich text styling */
.pp-popup-text p {
    margin-bottom: 1em;
}

.pp-popup-text p:last-child {
    margin-bottom: 0;
}

.pp-popup-text strong,
.pp-popup-text b {
    font-weight: bold;
}

.pp-popup-text em,
.pp-popup-text i {
    font-style: italic;
}

.pp-popup-text ul,
.pp-popup-text ol {
    margin: 1em 0;
    padding-left: 2em;
}

.pp-popup-text li {
    margin-bottom: 0.5em;
}

.pp-popup-text a {
    color: #d89f5a;
    text-decoration: underline;
}


.pp-popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.pp-popup-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #d89f5a;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-transform: uppercase;
    font-size: 1.1rem;
    border: 2px solid #d89f5a;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.pp-popup-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pp-popup-container {
        max-width: 294px !important; /* Mobile override from snippet */
        margin: 10px;
        background-size: contain !important;
    }
    
    .pp-popup-content {
        padding-bottom: 1rem;
        min-height: auto;
    }
    
    .pp-popup-text-content {
        padding: 5px !important;
    }
    
    .pp-popup-heading {
        font-size: 1.1rem;
    }
    
    .pp-popup-text {
        font-size: 0.9em;
    }
    
    .pp-popup-btn {
        font-size: 1rem;
        padding: 10px 20px;
        min-width: auto;
        width: 100%;
    }
    
    .pp-popup-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .pp-popup-logo {
        max-width: 150px;
    }
}

body.pp-popup-open #header {
    z-index: 9998;
}

body.has-potocki-promo-topbar #header {
    top: var(--pp-topbar-height, 40px);
}
/* Product Badges */
/* Product Badges - consolidated above */

/* Ensure badge is visible on product loop */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
}

/* Ensure badge is visible on single product page */
.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
}

/* Make Elementor shortcode container full height/width for hero */
.pp-hero-shortcode,
.pp-hero-shortcode .elementor-widget-container,
.elementor-shortcode:has(.pp-hero),
.elementor-widget-shortcode:has(.pp-hero) {
    height: 100% !important;
    width: 100%;
}

.elementor-shortcode .pp-hero,
.elementor-widget-shortcode .pp-hero {
    height: 100% !important;
    width: 100%;
    min-height: 100% !important;
}

.pp-hero .pp-hero-content {
    width: 100%;
}

/* Ensure Elementor column/section containing hero is full height */
.elementor-element:has(.pp-hero) {
    height: 100%;
}


.pp-hero-shortcode > .elementor-shortcode{
    height:100%;
}

.porto-ibanner-layer > :last-child {
    height:100%;
}

.porto-ibanner-layer {
    height:100%;
}

.owl-carousel.nav-pos-inside .owl-nav .owl-prev {
  left: 35px!important;
} 
.owl-carousel.nav-pos-inside .owl-nav .owl-next {
  right: 35px!important;
}
@media (max-width: 768px) {
    .elementor-143 .elementor-element.elementor-element-c978d2a > .elementor-element-populated {
        padding: 0;
    }
}