/**
 * WC Category Banners - frontend styles
 */

.wccb-banner-slot {
    width: 100%;
    display: block;
}

/* Standard WooCommerce UL/LI grids */
ul.products > li.wccb-banner-slot {
    width: 100%;
    float: none;
    clear: both;
    margin: 0 0 20px;
}

/* CSS grid / flex-based loops */
.products .wccb-banner-slot {
    grid-column: 1 / -1;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

/* WoodMart-specific product grid items */
.products .wccb-banner-slot.wd-col,
.products .wccb-banner-slot.wd-product,
.products .wccb-banner-slot.product-grid-item {
    grid-column: 1 / -1 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 20px;
}

.wccb-banner-wrap {
    width: 100%;
    margin: 0;
    clear: both;
}

.wccb-banner {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wccb-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.wccb-banner-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.wccb-banner-image {
    display: block;
    width: 100%;
    height: auto;
}

.wccb-banner-text {
    padding: 28px 22px;
    font-size: 1.1em;
    line-height: 1.5;
    font-weight: 500;
}

.wccb-banner-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .wccb-banner-text {
        padding: 18px 14px;
        font-size: 1em;
    }
}


/* WoodMart polish */
.products .wccb-banner-slot {
    margin-bottom: 10px;
}

.products .wccb-banner-slot .wccb-banner-wrap {
    border-radius: 12px;
    overflow: hidden;
}

.products .wccb-banner-slot .wccb-banner {
    border-radius: 12px;
    background: #f5f5f5;
}

.products .wccb-banner-slot .wccb-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.products .wccb-banner-slot .wccb-banner-link {
    display: block;
}

.products .wccb-banner-slot .wccb-banner-text {
    padding: 32px 28px;
}

@media (min-width: 1024px) {
    .products .wccb-banner-slot {
        margin-top: 6px;
        margin-bottom: 16px;
    }
}
