/*  */
/* ==========================================
   PROFESSIONAL BLOG LAYOUT STYLES
   ========================================== */

/* ---------- Base Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Content Area ---------- */
.content-area {
    padding: 50px 0 80px;
}

/* ---------- Blog Bar (Result Count + View Toggle) ---------- */
.wpl-blog-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    margin-bottom: 35px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.post-count {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
}

.view-toggle {
    display: flex;
    gap: 6px;
}

.view-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle button:hover {
    border-color: var(--primary, #2563EB);
    color: var(--primary, #2563EB);
    background: #f0f4ff;
}

.view-toggle button.active {
    border-color: var(--primary, #2563EB);
    color: #fff;
    background: var(--primary, #2563EB);
}

.view-toggle button svg {
    width: 18px;
    height: 18px;
}

/* ---------- Blog Listing Grid View ---------- */
.blog-listing.blog-view-grid {
    display: grid;
    grid-template-columns: repeat(var(--blog-columns, 3), 1fr);
    gap: var(--blog-column-gap, 30px);
}

.blog-listing.blog-view-grid > article,
.blog-listing.blog-view-grid > .post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blog-listing.blog-view-grid > article:hover,
.blog-listing.blog-view-grid > .post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ---------- Blog Listing List View ---------- */
.blog-listing.blog-view-list {
    display: flex;
    flex-direction: column;
    gap: var(--blog-list-gap, 30px);
}

.blog-listing.blog-view-list > article,
.blog-listing.blog-view-list > .post {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blog-listing.blog-view-list > article:hover,
.blog-listing.blog-view-list > .post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.blog-listing.blog-view-list > article .image-wrapper,
.blog-listing.blog-view-list > .post .image-wrapper {
    width: 320px;
    min-height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

.blog-listing.blog-view-list > article .content-wrapper,
.blog-listing.blog-view-list > .post .content-wrapper {
    flex: 1;
    min-width: 0;
    padding: 24px;
}

/* ---------- Image Wrapper ---------- */
.image-wrapper {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.image-wrapper .post-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
}

.image-wrapper .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-listing.blog-view-grid > article .image-wrapper img,
.blog-listing.blog-view-grid > .post .image-wrapper img {
    aspect-ratio: 16 / 10;
}

.blog-listing.blog-view-list > article .image-wrapper .post-thumbnail img,
.blog-listing.blog-view-list > .post .image-wrapper .post-thumbnail img {
    border-radius: 0;
}

article:hover .image-wrapper img,
.post:hover .image-wrapper img {
    transform: scale(1.05);
}

/* ---------- Content Wrapper ---------- */
.blog-listing.blog-view-grid > article .content-wrapper,
.blog-listing.blog-view-grid > .post .content-wrapper {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ---------- Entry Meta ---------- */
.entry-meta {
    margin-bottom: 10px;
}

.posted-on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.posted-on::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--primary, #2563EB);
    border-radius: 50%;
}

/* ---------- Entry Title ---------- */
.entry-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-color, #0f172a);
}

.blog-listing.blog-view-list .entry-title {
    font-size: 22px;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: var(--primary, #2563EB);
}

/* ---------- Entry Excerpt ---------- */
.entry-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 18px;
}

/* ---------- Read More Button ---------- */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #2563EB);
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.read-more::after {
    content: '\2192';
    transition: transform 0.2s ease;
}

.read-more:hover {
    gap: 12px;
}

.read-more:hover::after {
    transform: translateX(3px);
}


/* ---------- Webpixlab Latest Posts Widget ---------- */
.wpl-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpl-latest-posts li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.wpl-latest-posts li:first-child {
    padding-top: 0;
}

.wpl-latest-posts li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.wpl-latest-posts .post-thumbnail {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.wpl-latest-posts .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.wpl-latest-posts .post-info {
    flex: 1;
    min-width: 0;
}

.wpl-latest-posts .entry-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.wpl-latest-posts .post-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ---------- AJAX Post Search Widget ---------- */
.ajax-post-search-form {
    margin-bottom: 20px;
}

.ajax-post-search {
    display: flex;
    gap: 8px;
}

.ajax-post-search input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color, #0f172a);
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ajax-post-search input[type="text"]:focus {
    border-color: var(--primary, #2563EB);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.ajax-post-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: var(--primary, #2563EB);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ajax-post-search button:hover {
    background: #1d4ed8;
}

.ajax-post-search button svg {
    width: 18px;
    height: 18px;
}

.ajax-post-filter-categories,
.ajax-post-filter-tags {
    margin-bottom: 20px;
}

.ajax-post-filter-categories label,
.ajax-post-filter-tags label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ajax-post-filter-categories label:hover,
.ajax-post-filter-tags label:hover {
    color: var(--primary, #2563EB);
}

.ajax-post-filter-categories input[type="checkbox"],
.ajax-post-filter-tags input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary, #2563EB);
    cursor: pointer;
}

/* ---------- No Posts / Products Found ---------- */
.content-area .no-results,
.woocommerce-no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
}

.content-area .no-results p,
.woocommerce-no-products-found p {
    font-size: 16px;
    color: #94a3b8;
}

/* ==========================================
   PROFESSIONAL SHOP PRODUCT LISTING STYLES
   ========================================== */

/* ---------- Shop Bar (Result Count + View Toggle + Filter) ---------- */
.wpl-shop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px;
    margin-bottom: 35px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-count {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
}

.wpl-wc-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpl-wc-filter-toggle:hover {
    border-color: var(--primary, #2563EB);
    color: var(--primary, #2563EB);
    background: #f0f4ff;
}

/* ---------- Products Grid ---------- */
.products.grid-view .product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    list-style: none;
}

.products.grid-view .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ---------- Products List ---------- */
.products.list-view .product {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    list-style: none;
}

.products.list-view .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

/* ---------- Product Thumbnail ---------- */
.products .product .woocommerce-loop-product__link {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.products.grid-view .product .woocommerce-loop-product__link img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.products.list-view .product .woocommerce-loop-product__link {
    width: 240px;
    flex-shrink: 0;
}

.products.list-view .product .woocommerce-loop-product__link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.products .product:hover .woocommerce-loop-product__link img {
    transform: scale(1.05);
}

/* ---------- Product Content ---------- */
.products.grid-view .product .woocommerce-loop-product__link + * {
    padding-top: 16px;
}

.products.grid-view .product > *:not(.woocommerce-loop-product__link) {
    padding-left: 16px;
    padding-right: 16px;
}

.products.grid-view .product > *:last-child {
    padding-bottom: 20px;
    margin-bottom: 0;
}

.products.list-view .product > *:not(.woocommerce-loop-product__link) {
    flex: 1;
    min-width: 0;
}

/* ---------- Product Title ---------- */
.woocommerce-loop-product__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color, #0f172a);
}

.products.list-view .woocommerce-loop-product__title {
    font-size: 18px;
}

.woocommerce-loop-product__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-loop-product__title a:hover {
    color: var(--primary, #2563EB);
}

/* ---------- Product Price ---------- */
.products .product .price {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #2563EB);
}

.products .product .price del {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    margin-right: 6px;
}

.products .product .price ins {
    text-decoration: none;
}

/* ---------- Product Rating ---------- */
.products .product .star-rating {
    margin-bottom: 10px;
    font-size: 13px;
    color: #f59e0b;
}

/* ---------- Product Excerpt (list view) ---------- */
.products.list-view .product .woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 14px;
}

/* ---------- Add to Cart Button ---------- */
.products .product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary, #2563EB);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.products.grid-view .product .button {
    width: 100%;
}

.products .product .button:hover {
    background: #1d4ed8;
}

.products .product .button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.products .product .button.added::after {
    content: '\2713';
    margin-left: 4px;
}

.products .product .added_to_cart {
    display: none;
}

/* ---------- Product Sale Badge ---------- */
.products .product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- Shop Sidebar ---------- */
.wpl-shop-sidebar .widget {
    margin-bottom: 30px;
    padding: 24px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wpl-shop-sidebar .widget-title,
.wpl-shop-sidebar .widgettitle,
.wpl-shop-sidebar h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wpl-shop-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpl-shop-sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.wpl-shop-sidebar ul li:last-child {
    border-bottom: none;
}

.wpl-shop-sidebar ul li a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.wpl-shop-sidebar ul li a:hover {
    color: var(--primary, #2563EB);
}

/* ---------- Price Filter Widget ---------- */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: #e2e8f0;
    border-radius: 4px;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: var(--primary, #2563EB);
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background: var(--primary, #2563EB);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    top: -6px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.widget_price_filter .price_slider_amount .button {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: var(--primary, #2563EB);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.widget_price_filter .price_slider_amount .button:hover {
    background: #1d4ed8;
}

.widget_price_filter .price_label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* ---------- WooCommerce Layered Nav / Filter Widgets ---------- */
.wc-layered-nav-term a,
.wc-layered-nav-term span.count {
    font-size: 14px;
}

.wc-layered-nav-term .count {
    color: #94a3b8;
    font-size: 12px;
}

/* ---------- Active Filters ---------- */
.wc-block-active-filters__list,
.woocommerce-widget-layered-nav--filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-widget-layered-nav--filters ul li {
    padding: 0;
    border: none;
}

.woocommerce-widget-layered-nav--filters ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 13px;
}

/* ---------- Responsive: Shop ---------- */
@media (max-width: 1024px) {
    .products.list-view .product {
        flex-direction: column;
    }

    .products.list-view .product .woocommerce-loop-product__link {
        width: 100%;
    }

    .products.list-view .product .woocommerce-loop-product__link img {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .wpl-shop-bar {
        padding: 12px 16px;
    }

    .wpl-shop-content-wrapper {
        flex-direction: column;
    }

    .wpl-shop-content-wrapper .wpl-shop-sidebar {
        width: 100%;
    }

    .products.grid-view .product .button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .woocommerce-loop-product__title {
        font-size: 15px;
    }
}

/* ---------- Responsive: Blog ---------- */
@media (max-width: 1024px) {
    .blog-listing.blog-view-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-listing.blog-view-list > article,
    .blog-listing.blog-view-list > .post {
        flex-direction: column;
    }

    .blog-listing.blog-view-list > article .image-wrapper,
    .blog-listing.blog-view-list > .post .image-wrapper {
        width: 100%;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 30px 0 50px;
    }

    .wpl-blog-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .wpl-blog-content-wrapper .wpl-blog-sidebar {
        width: 100%;
    }

    .wpl-blog-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .blog-listing.blog-view-grid {
        grid-template-columns: 1fr;
    }

    .blog-listing.blog-view-list > article,
    .blog-listing.blog-view-list > .post {
        flex-direction: column;
    }

    .blog-listing.blog-view-list > article .image-wrapper,
    .blog-listing.blog-view-list > .post .image-wrapper {
        width: 100%;
        min-height: 180px;
    }

    .blog-listing.blog-view-list > article .content-wrapper,
    .blog-listing.blog-view-list > .post .content-wrapper {
        padding: 16px;
    }

    .entry-title {
        font-size: 18px;
    }

    .blog-listing.blog-view-list .entry-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .blog-listing.blog-view-grid > article .content-wrapper,
    .blog-listing.blog-view-grid > .post .content-wrapper {
        padding: 14px 16px 16px;
    }
}

/* ====================================================================== */
/* Webpixlab Pagination Styles */
.wpl-pagination-wrap {
    margin-top: 40px;
    text-align: center;
}

/* Numbered Pagination */
.wpl-pagination-numbered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wpl-pagination-numbered a,
.wpl-pagination-numbered span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border, #dee2e6);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #1E293B);
    background: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.wpl-pagination-numbered a:hover {
    background: var(--primary, #2563EB);
    border-color: var(--primary, #2563EB);
    color: #fff;
}

.wpl-pagination-numbered span.current {
    background: var(--primary, #2563EB);
    border-color: var(--primary, #2563EB);
    color: #fff;
    cursor: default;
}

.wpl-pagination-numbered span.dots {
    border: none;
    background: transparent;
    color: var(--text-color, #1E293B);
    min-width: auto;
    padding: 0 4px;
}

/* Load More Button */
.wpl-pagination-ajax {
    text-align: center;
}

.wpl-pagination-ajax .load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    border: 2px solid var(--primary, #2563EB);
    border-radius: 8px;
    background: transparent;
    color: var(--primary, #2563EB);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpl-pagination-ajax .load-more-btn:hover {
    background: var(--primary, #2563EB);
    color: #fff;
}

.wpl-pagination-ajax .load-more-btn:disabled,
.wpl-pagination-ajax .load-more-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.wpl-pagination-ajax .load-more-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wpl-spin 0.6s linear infinite;
}

@keyframes wpl-spin {
    to { transform: rotate(360deg); }
}

/* Infinite Scroll Trigger */
.wpl-infinite-scroll-trigger {
    height: 1px;
    visibility: hidden;
}

/* Infinite Scroll Loading Indicator */
.wpl-infinite-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 30px 0;
    color: var(--text-color, #1E293B);
    font-size: 14px;
}

.wpl-infinite-loading .wpl-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border, #dee2e6);
    border-top-color: var(--primary, #2563EB);
    border-radius: 50%;
    animation: wpl-spin 0.6s linear infinite;
}

.wpl-infinite-loading.hidden {
    display: none;
}

/* ==========================================
PRODUCT VIEW TOGGLE
========================================== */
.products.grid-view {
    display: grid;
    grid-template-columns: repeat(var(--wpl-shop-columns, 4), 1fr);
    gap: var(--wpl-shop-column-gap, 30px);
}

.products.list-view {
    display: flex;
    flex-direction: column;
    gap: var(--wpl-shop-column-gap, 30px);
}

.products.list-view .product {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.products.list-view .product .woocommerce-loop-product__link {
    flex-shrink: 0;
    width: 280px;
}

.products.list-view .product .button {
    margin-top: auto;
}

/* Shop Sidebar Layout */
.wpl-shop-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.wpl-shop-content-wrapper .wpl-shop-main-content {
    flex: 1;
    min-width: 0;
}

.wpl-shop-content-wrapper .wpl-shop-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.wpl-shop-content-wrapper.wpl-sidebar-left {
    flex-direction: row-reverse;
}

/* Blog Sidebar Layout */
.wpl-blog-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.wpl-blog-content-wrapper .site-main {
    flex: 1;
    min-width: 0;
}

.wpl-blog-content-wrapper .wpl-blog-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.wpl-blog-content-wrapper.wpl-sidebar-left {
    flex-direction: row-reverse;
}

.wpl-blog-content-wrapper.wpl-sidebar-left .wpl-blog-sidebar {
    margin-right: 0;
}

/* ==========================================
SIDEBAR OFFCANVAS (shared)
========================================== */
.wpl-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.wpl-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.wpl-sidebar-header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #333;
    transition: background 0.2s;
}

.wpl-sidebar-header button:hover {
    background: #e0e0e0;
}

/* ==========================================
FILTER / SIDEBAR TOGGLE BUTTONS
========================================== */
.wpl-wc-filter-toggle,
.wpl-blog-filter-toggle {
    display: none;
}

/* ==========================================
RESPONSIVE < 1280px
========================================== */
@media (max-width: 1280px) {

    /* Show toggle buttons */
    .wpl-wc-filter-toggle,
    .wpl-blog-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ========== BLOG SIDEBAR OFFCANVAS ========== */
    .wpl-blog-content-wrapper .wpl-blog-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        z-index: 10001;
        background: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
        flex-shrink: unset;
    }

    .wpl-blog-sidebar.active {
        transform: translateX(0);
    }

    .wpl-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .wpl-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* ========== SHOP SIDEBAR OFFCANVAS ========== */
    .wpl-shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        z-index: 10001;
        background: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
        padding: 0;
    }

    .wpl-shop-sidebar.active {
        transform: translateX(0);
    }

    .wpl-shop-sidebar .wpl-sidebar-close {
        display: flex;
    }
}

@media (max-width: 768px) {
    .wpl-blog-content-wrapper {
        flex-direction: column !important;
    }
    .wpl-blog-content-wrapper .wpl-blog-sidebar {
        width: 100%;
    }
}

/* No more posts indicator */
.wpl-no-more-posts {
    text-align: center;
    padding: 20px 0;
    color: var(--text-color, #1E293B);
    opacity: 0.6;
    font-size: 14px;
}

/* WordPress Core Latest Posts Block with Featured Images */
.wp-block-latest-posts.has-featured-image {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-latest-posts.has-featured-image li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border, #eee);
}

.wp-block-latest-posts.has-featured-image li:last-child {
    border-bottom: none;
}

.wp-block-latest-posts__featured-image {
    flex-shrink: 0;
    line-height: 0;
}

.wp-block-latest-posts__featured-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.wp-block-latest-posts__post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    color: inherit;
}

.wp-block-latest-posts__post-title:hover {
    color: var(--primary, #2563EB);
}

/* ==========================================
WPL AJAX BLOG FILTER WIDGET
========================================== */
.wpl-af-latest h4,
.wpl-af-search h4,
.wpl-af-categories h4,
.wpl-af-tags h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-color, #1E293B);
}

.wpl-af-latest-info a {
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color, #1E293B);
    transition: color 0.2s;
}

.wpl-af-latest-info a:hover {
    color: var(--primary, #2563EB);
}

.wpl-af-latest-info span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.wpl-af-search {
    margin-bottom: 15px;
}

.wpl-af-search .wpl-af-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.wpl-af-search .wpl-af-search-input:focus {
    border-color: var(--primary, #2563EB);
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}


/* Loading state for blog listing */
.blog-listing.loading {
    opacity: 0.5;
    position: relative;
    pointer-events: none;
}

.blog-listing.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--primary, #2563EB);
    border-top-color: transparent;
    border-radius: 50%;
    animation: wpl-spin 0.6s linear infinite;
    z-index: 10;
}