
.custom-category-header {
    margin-bottom: 50px;
}

.custom-category-image-container {
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.custom-category-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.custom-category-image:hover {
    transform: scale(1.02);
}

.custom-category-content {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.custom-category-title {

    margin: 0 0 20px 0;
    letter-spacing: -1px;
    line-height: 1.2;
    font-weight: 600;

    text-transform: none;
    text-align: center;
}

.custom-category-description {
    font-size: 16px;
    line-height: 1.8;
    color: #505050;

}

.custom-category-description p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;

}

.custom-category-description strong {
    color: #333;
    font-weight: 600;
}

.category-text-under-grid
{
    margin-top: 50px;
}

/* Responsive adjustments for category header */
@media (max-width: 768px) {
    .custom-category-title {
        font-size: 32px;
        margin-bottom: 15px;

    }
    
    .custom-category-description {
        font-size: 15px;
    }
    
    .custom-category-header {
        margin-bottom: 30px;
    }
}

/* Custom Product Cards Layout */
.custom-products-layout .custom-products-container {
    display: flex;
    flex-direction: column;
   margin-top: 30px;
    margin-bottom: 20px;
}

.custom-product-card {
    position: relative;
    padding: 20px;
    border: none;
}

.custom-product-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: #c4cd26;
    pointer-events: none;
}

/* Only the last card gets the bottom line */
.custom-product-card:last-of-type::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #c4cd26;
    pointer-events: none;
}


.product-card-top {
    display: flex;
    gap: 50px;
    align-items: center;
}

.product-image-section {
    flex: 0 0 45%;
}

.product-image-section a {
    display: block;
    text-decoration: none;
}

.custom-product-image {
    width: auto;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
    max-height: 420px;
}

.custom-product-image:hover {
    transform: scale(1.04);
}

.product-content-section {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.custom-product-title {
    margin: 35px 0 15px 0;

    line-height: 1.3;
}

.custom-product-title a {
    color: #505050;
    text-decoration: none;
    line-height: 1.4em;
    transition: color 0.3s ease;
}

.custom-product-title a:hover {
    color: #505050;
    opacity: 0.7;
}

.product-short-description {
    color: #505050;
    font-size: 14px;
    line-height: 1.6;
}

.product-short-description ul {
    margin: 10px 0;
    padding-left: 20px;
}

.product-short-description li {
    margin-bottom: 5px;
    color: #505050;
    line-height: 1.5;
}

.product-button-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 0 0;
}

.product-button-price {
    display: flex;
    align-items: center;
    min-width: 0;
}

.product-button-price .bb-api-price-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.product-button-price .bb-api-price--legacy {
    color: #505050;
    font-size: 25px;
    font-weight:600;
    line-height: 1.1;
    letter-spacing: -0.4px;
    text-decoration: underline;
    text-decoration-color: #c3cc21;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.product-button-price .bb-api-price__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #505050;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    user-select: none;
    flex: 0 0 auto;
}

.product-button-price .bb-api-price__tooltip {
    position: absolute;
    left: calc(100% - 14px);
    top: calc(100% + 10px);
    min-width: 260px;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid #d8dbe1;
    border-radius: 8px;
    background: #fff;
    color: #505050;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
    pointer-events: none;
}

.product-button-price .bb-api-price-wrap:hover .bb-api-price__tooltip,
.product-button-price .bb-api-price__hint:focus + .bb-api-price__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.custom-product-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #c4cd26;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.custom-product-button:hover {
    background-color: #a3b021;
    color: #fff;
    transform: translateX(2px);
}

.custom-product-button svg {
    transition: transform 0.3s ease;
}

.custom-product-button:hover svg {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-image-section,
    .product-content-section {
        flex: 1 1 100%;
    }
    
    .custom-product-card {
        padding: 20px 0;
    }
    .product-button-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .product-button-price .bb-api-price--legacy {
        font-size: 22px;
    }


}


.product-compare-box-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 20px;
}
.product-compare-box {
    font-size:14px;
    border: 1px solid #b0b0b0;
    border-radius: 10px;
    padding: 10px 15px;
    display: inline-flex; 
    justify-content: space-between;
    flex-direction: row;
    gap: 20px; /* jak chcesz odstępy między elementami */
}
.product-compare-box a
{
    text-decoration: underline #c3cc21;
    font-weight: 600;
}

.box-style-1
{
    width:450px;
}
.box-style-2
{
    width:560px;
}

/* faq */
#bb-kat-faq .bb-faq-item {
	border: 1px solid #b0b0b0;
	border-radius: 10px;
	margin-bottom: 25px;
	padding: 20px;
}
#bb-kat-faq .bb-faq-item .bb-faq-toggle {
	margin-top: 15px;
}
#bb-kat-faq .bb-faq-item.close {
	background:#f4f4f4;
}
#bb-kat-faq .bb-faq-item h3 {
    position: relative;
	padding-right: 30px;
	cursor: pointer;
}
#bb-kat-faq .bb-faq-item h3::after {
    position: absolute;
	right: 0;
	top: 50%;
	content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    margin-left: 10px;
    vertical-align: middle;
    transition: transform .3s;
}
#bb-kat-faq .bb-faq-item.open h3::after {
    transform: translateY(-50%) rotate(-135deg);
}
#bb-kat-faq .bb-faq-item.close h3 {
    color:#666;
}
#bb-kat-faq .bb-faq-item.close .bb-faq-toggle {
	display:none;
}