/* WooCategory Builder Pro v2.2 - Woodmart UX */
.wcbp-wrapper{
    --wcbp-soft-border:rgba(17,24,39,.09);
    --wcbp-muted:rgba(17,24,39,.62);
    width:100%;
    max-width:var(--wcbp-max-width);
    margin-left:auto;
    margin-right:auto;
    font-family:var(--wcbp-font);
    color:var(--wcbp-text);
    clear:both;
}
.wcbp-wrapper *{box-sizing:border-box}
.wcbp-wrapper.wcbp-woodmart-mode{margin-bottom:34px}
.wcbp-wrapper[style*="--wcbp-max-width:none"]{max-width:none}
.wcbp-block{margin:0 0 var(--wcbp-block-spacing) 0;padding:0}
.wcbp-section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 18px 0;border:0}
.wcbp-section-heading h2{
    margin:0;
    font-family:var(--wcbp-heading-font);
    font-size:var(--wcbp-section-title-d);
    font-weight:var(--wcbp-heading-weight);
    line-height:var(--wcbp-heading-lh);
    letter-spacing:var(--wcbp-letter-spacing);
    text-transform:var(--wcbp-transform);
    color:var(--wcbp-text);
}
.wcbp-grid{display:grid;grid-template-columns:repeat(var(--wcbp-desktop),minmax(0,1fr));gap:var(--wcbp-gap);align-items:start}
.wcbp-card{position:relative;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;list-style:none!important;overflow:visible!important;text-align:left!important}
.wcbp-card-link{display:block;text-decoration:none!important;color:inherit!important;outline:0;border:0!important;background:transparent!important}
.wcbp-card-media{
    width:100%;
    height:var(--wcbp-card-height);
    min-height:120px;
    border-radius:var(--wcbp-radius);
    background-size:cover;
    background-position:center;
    background-color:#f6f6f6;
    overflow:hidden;
    transition:transform .28s ease, filter .28s ease, opacity .28s ease;
}
.wcbp-card-body{padding:14px var(--wcbp-card-padding) 0 var(--wcbp-card-padding);background:transparent!important;border:0!important;box-shadow:none!important}
.wcbp-card h3{
    margin:0;
    color:var(--wcbp-text);
    font-family:var(--wcbp-heading-font);
    font-size:var(--wcbp-card-title-d);
    font-weight:var(--wcbp-heading-weight);
    line-height:1.22;
    letter-spacing:var(--wcbp-letter-spacing);
    text-transform:var(--wcbp-transform);
}
.wcbp-count{display:inline-block;margin-top:5px;color:var(--wcbp-muted);font-size:13px;line-height:1.3}
.wcbp-card p{margin:8px 0 0;color:var(--wcbp-muted);font-size:var(--wcbp-body-size);font-weight:var(--wcbp-body-weight);line-height:var(--wcbp-body-lh)}
.wcbp-button{display:inline-flex;align-items:center;gap:8px;margin-top:10px;color:var(--wcbp-accent);font-size:var(--wcbp-button-size);font-weight:var(--wcbp-button-weight);line-height:1.2;background:transparent;border:0;padding:0;text-decoration:none}
.wcbp-button:after{content:'→';font-size:1em;transform:translateX(0);transition:transform .22s ease}.wcbp-card-link:hover .wcbp-button:after{transform:translateX(4px)}
.wcbp-grid.has-hover .wcbp-card-link:hover .wcbp-card-media{transform:translateY(-3px);filter:saturate(1.04) contrast(1.02)}
.wcbp-grid.has-hover .wcbp-card-link:hover h3{color:var(--wcbp-accent)}

/* Estilo minimal: sin tarjetas, imagen limpia + tipografía debajo */
.wcbp-subcategories-minimal .wcbp-card-media{height:var(--wcbp-card-height);box-shadow:none}
.wcbp-subcategories-minimal .wcbp-card-body{padding-left:2px;padding-right:2px}

/* Estilo image-strip: imagen más panorámica y jerarquía comercial */
.wcbp-subcategories-image-strip .wcbp-card-media{height:calc(var(--wcbp-card-height) + 40px);border-radius:calc(var(--wcbp-radius) + 4px)}
.wcbp-subcategories-image-strip .wcbp-card-body{padding-top:16px}

/* Estilo compacto: pensado para muchas subcategorías */
.wcbp-subcategories-compact .wcbp-grid{gap:12px}
.wcbp-subcategories-compact .wcbp-card-link{display:flex;align-items:center;gap:12px;padding:8px 4px;border-bottom:1px solid var(--wcbp-soft-border)}
.wcbp-subcategories-compact .wcbp-card-media{width:54px;height:54px;min-height:54px;flex:0 0 54px;border-radius:14px}
.wcbp-subcategories-compact .wcbp-card-body{padding:0}.wcbp-subcategories-compact .wcbp-card h3{font-size:16px}

.wcbp-hero{position:relative;min-height:var(--wcbp-hero-height);border-radius:var(--wcbp-radius);overflow:hidden;margin-bottom:var(--wcbp-block-spacing);background:#f7f7f7;background-size:cover;background-position:center;display:flex;align-items:center;padding:clamp(24px,5vw,56px)}
.wcbp-hero-content{position:relative;z-index:2;max-width:720px}.wcbp-hero h1{margin:0 0 12px;font-family:var(--wcbp-heading-font);font-size:var(--wcbp-hero-title-d);font-weight:var(--wcbp-heading-weight);line-height:var(--wcbp-heading-lh);letter-spacing:var(--wcbp-letter-spacing);text-transform:var(--wcbp-transform)}
.wcbp-hero-overlay h1,.wcbp-hero-overlay p{color:#fff}.wcbp-hero p{margin:0 0 22px;font-size:var(--wcbp-body-size);line-height:var(--wcbp-body-lh);color:var(--wcbp-muted)}
.wcbp-hero-split{display:grid;grid-template-columns:1fr 1fr;gap:34px;background:transparent;padding:0;overflow:visible}.wcbp-hero-split .wcbp-hero-image{min-height:var(--wcbp-hero-height);border-radius:var(--wcbp-radius);background-size:cover;background-position:center}.wcbp-hero-split .wcbp-hero-content{align-self:center}
.wcbp-hero-text{background:transparent;min-height:auto;padding:0;border-radius:0}
.wcbp-primary-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;background:var(--wcbp-button-bg);color:var(--wcbp-button-text)!important;border-radius:var(--wcbp-button-radius);padding:var(--wcbp-button-py) var(--wcbp-button-px);font-size:var(--wcbp-button-size);font-weight:var(--wcbp-button-weight);line-height:1;border:0;transition:background .2s ease,transform .2s ease}.wcbp-primary-button:hover{background:var(--wcbp-button-hover-bg);transform:translateY(-1px)}
.wcbp-description-block,.wcbp-cta{background:transparent;border:0;box-shadow:none;padding:var(--wcbp-block-padding);border-radius:0}.wcbp-description-content{font-size:var(--wcbp-body-size);line-height:var(--wcbp-body-lh);color:var(--wcbp-muted)}.wcbp-description-content p:last-child{margin-bottom:0}.wcbp-cta{display:flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid var(--wcbp-soft-border);border-bottom:1px solid var(--wcbp-soft-border)}.wcbp-cta h2{margin:0 0 6px;font-family:var(--wcbp-heading-font);font-size:var(--wcbp-section-title-d);font-weight:var(--wcbp-heading-weight)}.wcbp-cta p{margin:0;color:var(--wcbp-muted);font-size:var(--wcbp-body-size)}
.wcbp-products-block .products{margin-top:0}.wcbp-products-block .wcbp-section-heading{margin-bottom:18px}

/* Limpieza agresiva para duplicados WooCommerce/Woodmart */
.wcbp-hide-native-category-images .woocommerce ul.products li.product-category img,
.wcbp-hide-native-category-images .woocommerce-page ul.products li.product-category img,
.wcbp-woodmart-active .product-category .wd-entities-title:empty,
.wcbp-woodmart-active .product-category mark.count{display:none!important}
.wcbp-woodmart-active .woocommerce ul.products li.product-category{box-shadow:none!important;background:transparent!important;border:0!important}
.wcbp-woodmart-active .woocommerce ul.products li.product-category .wrapp-category,
.wcbp-woodmart-active .woocommerce ul.products li.product-category .category-image-wrapp,
.wcbp-woodmart-active .woocommerce ul.products li.product-category .hover-mask{box-shadow:none!important;border:0!important;background:transparent!important}

@media (max-width:1024px){.wcbp-grid{grid-template-columns:repeat(var(--wcbp-tablet),minmax(0,1fr))}.wcbp-section-heading h2{font-size:var(--wcbp-section-title-t)}.wcbp-card h3{font-size:var(--wcbp-card-title-t)}.wcbp-hero h1{font-size:var(--wcbp-hero-title-t)}.wcbp-hero-split{grid-template-columns:1fr}}
@media (max-width:767px){.wcbp-wrapper{margin-bottom:24px}.wcbp-grid{grid-template-columns:repeat(var(--wcbp-mobile),minmax(0,1fr));gap:14px}.wcbp-card-media{height:max(120px,calc(var(--wcbp-card-height) * .72))}.wcbp-card-body{padding-top:10px}.wcbp-card h3{font-size:var(--wcbp-card-title-m)}.wcbp-section-heading h2{font-size:var(--wcbp-section-title-m)}.wcbp-hero{min-height:auto;padding:28px 22px}.wcbp-hero h1{font-size:var(--wcbp-hero-title-m)}.wcbp-cta{display:block}.wcbp-cta .wcbp-primary-button{margin-top:16px}.wcbp-subcategories-compact .wcbp-grid{grid-template-columns:1fr}}

/* v2.3 - Integración nativa Woodmart */
.wcbp-native-header{
    display:flex;
    align-items:center;
    gap:22px;
    margin:0 0 28px 0;
    padding:0;
    background:transparent;
    border:0;
    box-shadow:none;
}
.wcbp-header-center .wcbp-native-header{
    flex-direction:column;
    text-align:center;
    justify-content:center;
}
.wcbp-native-header-image{
    width:var(--wcbp-cat-image-size);
    height:var(--wcbp-cat-image-size);
    min-width:var(--wcbp-cat-image-size);
    border-radius:999px;
    background-size:cover;
    background-position:center;
    background-color:#f5f5f5;
    box-shadow:0 12px 34px rgba(15,23,42,.08);
    overflow:hidden;
}
.wcbp-native-title{
    margin:0;
    font-family:var(--wcbp-heading-font);
    font-size:var(--wcbp-native-title-d);
    font-weight:var(--wcbp-heading-weight);
    line-height:var(--wcbp-heading-lh);
    letter-spacing:var(--wcbp-letter-spacing);
    text-transform:var(--wcbp-transform);
    color:var(--wcbp-text);
}
.wcbp-native-description{
    margin-top:10px;
    max-width:820px;
    color:var(--wcbp-muted);
    font-size:var(--wcbp-body-size);
    font-weight:var(--wcbp-body-weight);
    line-height:var(--wcbp-body-lh);
}
.wcbp-header-center .wcbp-native-description{margin-left:auto;margin-right:auto}

.wcbp-subcategories-rounded-native .wcbp-grid{
    grid-template-columns:repeat(auto-fit,minmax(var(--wcbp-cat-min-width),1fr));
    gap:var(--wcbp-gap);
}
.wcbp-subcategories-rounded-native .wcbp-card-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:12px;
    padding:4px 2px 0;
}
.wcbp-subcategories-rounded-native .wcbp-card-media{
    width:var(--wcbp-cat-image-size);
    height:var(--wcbp-cat-image-size);
    min-height:var(--wcbp-cat-image-size);
    max-width:100%;
    border-radius:999px;
    box-shadow:0 14px 35px rgba(15,23,42,.08);
    background-color:#f7f7f7;
}
.wcbp-subcategories-rounded-native .wcbp-card-body{padding:0 4px;background:transparent}
.wcbp-subcategories-rounded-native .wcbp-card h3{font-size:var(--wcbp-card-title-d);line-height:1.18}
.wcbp-subcategories-rounded-native .wcbp-count{font-size:12px;margin-top:4px}
.wcbp-subcategories-rounded-native .wcbp-button{justify-content:center;margin-top:7px}

.wcbp-hover-none .wcbp-card-link:hover .wcbp-card-media{transform:none!important;filter:none!important}
.wcbp-hover-lift .wcbp-card-link:hover .wcbp-card-media{transform:translateY(-5px)}
.wcbp-hover-zoom .wcbp-card-link:hover .wcbp-card-media{transform:scale(1.045)}
.wcbp-hover-lift-glow .wcbp-card-link:hover .wcbp-card-media{
    transform:translateY(-5px) scale(1.015);
    box-shadow:0 22px 54px rgba(15,23,42,.16),0 0 0 6px rgba(17,24,39,.035);
    filter:saturate(1.06) contrast(1.03);
}

/* Woodmart: ocultación de cabeceras/títulos duplicados habituales */
.wcbp-woodmart-active .wd-shop-title,
.wcbp-woodmart-active .shop-title-wrapper,
.wcbp-woodmart-active .term-description,
.wcbp-woodmart-active .woocommerce-products-header__title.page-title{
    display:none!important;
}
.wcbp-woodmart-active .woocommerce-products-header{margin:0!important;padding:0!important;border:0!important}
.wcbp-woodmart-active .woocommerce-products-header:empty{display:none!important}

@media (max-width:767px){
    .wcbp-native-header{gap:14px;margin-bottom:22px}
    .wcbp-native-header-image{width:72px;height:72px;min-width:72px}
    .wcbp-native-title{font-size:var(--wcbp-native-title-m)}
    .wcbp-native-description{font-size:14px;margin-top:8px}
    .wcbp-subcategories-rounded-native .wcbp-grid{grid-template-columns:repeat(var(--wcbp-mobile),minmax(0,1fr));gap:16px 12px}
    .wcbp-subcategories-rounded-native .wcbp-card-media{width:min(var(--wcbp-cat-image-size),96px);height:min(var(--wcbp-cat-image-size),96px);min-height:min(var(--wcbp-cat-image-size),96px)}
}
