
/* === BLOG ARCHIVE LAYOUT === */
.blog-archive-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 16px;
}
.blog-posts-list {
    flex: 0 0 75%;
    max-width: 75%;
	padding-top: 20px;
}
.blog-sidebar {
    flex: 0 0 35%;
    max-width: 25%;
    min-width: 260px;
	
}
@media (max-width: 900px) {
    .blog-archive-layout {
        flex-direction: column;
        gap: 28px;
    }
    .blog-posts-list,
    .blog-sidebar {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

/* === BLOG ARCHIVE POST ITEM === */
.blog-post-row {
    display: flex;
    gap: 32px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px #0001;
    margin-bottom: 36px;
    overflow: hidden;
}
.blog-thumbnail-link {
    display: block;
    flex: 0 0 290px;
    max-width: 290px;
    width: 290px;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f7f7fa;
}
.blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    transition: transform 0.25s;
}
.blog-thumbnail-link:hover .blog-thumbnail {
    transform: scale(1.03);
}

.blog-article-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 24px 30px 0;
}

.blog-categories {
    margin-bottom: 12px;
}
.blog-category-link {
    color: var(--tb-theme-color);
    background: #f5f5f7;
    padding: 3px 13px 4px 13px;
    border-radius: 6px;
    font-size: 13px;
    margin-right: 8px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 3px;
    transition: color .2s, background .2s;
}
.blog-category-link:hover {
    color: var(--tb-theme-color-hover);
    background: #eaeaff;
    text-decoration: underline;
}
.blog-post-title {
    margin: 0 0 13px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}
.blog-title-link {
    color: #000;
    text-decoration: none;
    font-size: inherit;
    background: none;
    padding: 0;
    border-radius: 0;
    margin: 0;
    font-weight: 700;
    text-transform: none;
    transition: color .2s;
}
.blog-title-link:hover {
    color: var(--tb-theme-color-hover);
    text-decoration: underline;
}
.blog-meta {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 13px;
}
.blog-meta-author,
.blog-meta-date {
    color: #555;
    font-weight: 400;
}
.blog-post-excerpt {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    position: relative;
}

.blog-readmore-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.blog-readmore-btn {
    display: inline-block;
    padding: 9px 26px;
    background: var(--tb-theme-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 2px 8px #0001;
    border: none;
}
.blog-readmore-btn:hover {
    background: #222;
    color: #fff;
    text-decoration: none;
}

/* === BLOG PAGINATION === */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 0 0;
}
.blog-pagination .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 8px 16px;
    color: var(--tb-theme-color);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
    text-decoration: none;
    transition: background .18s, color .18s;
    font-weight: 600;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--tb-theme-color);
    color: #fff;
    border-color: var(--tb-theme-color);
}

/* === SIDEBAR WIDGETS === */

@media (max-width: 900px) {
    .blog-archive-layout { flex-direction: column; }
    .blog-post-row { flex-direction: column; gap:0; }
    .blog-thumbnail-link { width:100%; max-width:100%; }
    .blog-article-main { padding:22px 12px 18px 12px; }
    .blog-sidebar { min-width:0; }
}

.blog-thumbnail-link {
    display: block;
    width: 100%;
    max-width: 290px;
    aspect-ratio: 4/3;
    background: #f7f7fa;
    overflow: hidden;
    border-radius: 12px;
    /* można dodać shadow: */
    /* box-shadow: 0 4px 18px #0001; */
}

.blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    transition: transform 0.25s;
}

/* === WOOCOMMERCE PRODUCTS IN BLOG POSTS === */
/* Fix dla produktów WooCommerce wyświetlanych przez WPBakery w postach blogowych */
/* UWAGA: Te style działają TYLKO w postach blogowych, gdzie blog.css jest ładowany */

.blog .woocommerce ul.products,
.single-post ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 20px 0;
    padding: 0;
    width: 100%;
}

.blog .woocommerce ul.products li.product,
.single-post ul.products li.product {
    flex: 0 1 calc((100% - 32px) / 3);
    min-width: 0;
    max-width: calc((100% - 32px) / 3);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: visible;
    transition: box-shadow 0.2s, transform 0.2s;
    box-sizing: border-box;
}

.blog .woocommerce ul.products li.product:hover,
.single-post ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.blog .woocommerce ul.products li.product a,
.single-post ul.products li.product a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.single-post ul.products li.product a.woocommerce-LoopProduct-link {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.blog .woocommerce ul.products li.product img,
.single-post ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.blog .woocommerce ul.products li.product .woocommerce-loop-product__title,
.blog .woocommerce ul.products li.product h2,
.single-post ul.products li.product .woocommerce-loop-product__title,
.single-post ul.products li.product h2 {
    font-size: 16px;
    font-weight: 400;
    margin: 10px 12px;
    line-height: 1.3;
    color: #333;
}

.blog .woocommerce ul.products li.product .price,
.single-post ul.products li.product .price {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 8px 12px 12px 12px;
    display: block;
}

.blog .woocommerce ul.products li.product .price .amount,
.single-post ul.products li.product .price .amount {
    font-size: inherit;
    color: inherit;
}

/* === PROMOCJA / BADGE ONSALE === */
/* Badge będzie używał zunifikowanego stylu z woo.css (linie 377-408) */
/* Tutaj nie ma potrzeby definiować osobnych styli - dziedziczą z woo.css */

/* 2 kolumny na tablet */
@media (max-width: 900px) {
    .blog .woocommerce ul.products li.product,
    .single-post ul.products li.product {
        flex: 0 1 calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
        min-width: 0;
    }
}

/* 1 kolumna na mobile */
@media (max-width: 600px) {
    .blog .woocommerce ul.products li.product,
    .single-post ul.products li.product {
        flex: 1 1 100%;
        max-width: 100%;
    }
}