
/* ==========================================================
   HEADER GENERAL
   No se modifica visualmente la portada.
   ========================================================== */

body:not(.home) #masthead,
body:not(.home) .site-header {
    position: relative;
    z-index: 20;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(241,248,251,.98) 50%,
            rgba(232,245,249,.98) 100%
        ) !important;

    border-bottom: 1px solid rgba(38, 91, 120, .12);

    box-shadow:
        0 5px 18px rgba(27, 57, 79, .08);
}


/* enlaces principales */
body:not(.home) #masthead a,
body:not(.home) .site-header a {
    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease;
}

body:not(.home)
.main-header-menu > .menu-item > a {
    position: relative;
    color: #203b50;
    font-weight: 650;
}

body:not(.home)
.main-header-menu > .menu-item > a::after {
    content: "";
    position: absolute;

    left: 20%;
    right: 20%;
    bottom: 11px;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #245b7c,
            #4ca6bf
        );

    transform: scaleX(0);

    transition: transform .18s ease;
}

body:not(.home)
.main-header-menu > .menu-item > a:hover::after,
body:not(.home)
.main-header-menu > .current-menu-item > a::after {
    transform: scaleX(1);
}


/* iconos del header */
body:not(.home)
.ast-header-account-wrap,
body:not(.home)
.ast-site-header-cart {
    transition:
        transform .18s ease,
        filter .18s ease;
}

body:not(.home)
.ast-header-account-wrap:hover,
body:not(.home)
.ast-site-header-cart:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 6px rgba(27, 75, 101, .16));
}



/* ==========================================================
   FONDO GENERAL DE CATÁLOGO
   Por ahora sin imagen definitiva.
   ========================================================== */

body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(88, 181, 205, .13),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 75%,
            rgba(39, 101, 136, .09),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #edf8fa 0%,
            #f7fbfc 48%,
            #e8f5f8 100%
        ) !important;
}



/* ==========================================================
   LAYOUT PRINCIPAL
   ========================================================== */

body.woocommerce-shop .site-content > .ast-container,
body.post-type-archive-product .site-content > .ast-container,
body.tax-product_cat .site-content > .ast-container,
body.tax-product_tag .site-content > .ast-container {

    max-width: 1500px;

    padding-top: 44px;
    padding-bottom: 60px;

    gap: 28px;
}



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

body.woocommerce-shop #secondary,
body.post-type-archive-product #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary {

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.93) 0%,
            rgba(245,250,252,.93) 100%
        );

    border: 1px solid rgba(38, 91, 120, .10);

    border-radius: 18px;

    padding: 24px 22px;

    box-shadow:
        0 15px 35px rgba(35, 73, 97, .08),
        0 3px 8px rgba(0,0,0,.03);

    height: max-content;
}


/* widgets */
body.woocommerce-shop #secondary .widget,
body.post-type-archive-product #secondary .widget,
body.tax-product_cat #secondary .widget,
body.tax-product_tag #secondary .widget {
    margin-bottom: 30px;
}

body.woocommerce-shop #secondary .widget:last-child,
body.post-type-archive-product #secondary .widget:last-child {
    margin-bottom: 0;
}


/* títulos sidebar */
body.woocommerce-shop #secondary h2,
body.woocommerce-shop #secondary h3,
body.woocommerce-shop #secondary .widget-title,
body.post-type-archive-product #secondary .widget-title,
body.tax-product_cat #secondary .widget-title {

    color: #21445d;

    font-size: 19px;
    line-height: 1.3;

    font-weight: 750;

    margin-bottom: 15px;

    padding-bottom: 9px;

    border-bottom: 2px solid rgba(70, 157, 185, .20);
}



/* buscador */
body.woocommerce-shop #secondary input[type="search"],
body.post-type-archive-product #secondary input[type="search"] {

    min-height: 43px;

    background: #fff;

    border: 1px solid #d3e0e6;

    border-radius: 9px;

    padding: 9px 12px;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.025);
}

body.woocommerce-shop #secondary button,
body.post-type-archive-product #secondary button {

    border-radius: 8px !important;

    background:
        linear-gradient(
            90deg,
            #28637f,
            #46a0b8
        ) !important;

    color: #fff !important;

    border: 0 !important;

    font-weight: 700;

    box-shadow:
        0 5px 12px rgba(40, 99, 127, .15);
}



/* categorías */
body.woocommerce-shop #secondary ul,
body.post-type-archive-product #secondary ul {
    list-style: none;
    padding-left: 0;
}

body.woocommerce-shop #secondary li,
body.post-type-archive-product #secondary li {

    padding: 7px 0;

    border-bottom: 1px solid rgba(37, 82, 108, .06);
}

body.woocommerce-shop #secondary li:last-child,
body.post-type-archive-product #secondary li:last-child {
    border-bottom: 0;
}



/* ==========================================================
   PANEL CENTRAL DEL CATÁLOGO
   ========================================================== */

body.woocommerce-shop #primary,
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary {

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.94) 0%,
            rgba(249,252,253,.94) 100%
        );

    border: 1px solid rgba(38, 91, 120, .08);

    border-radius: 22px;

    padding: 34px !important;

    box-shadow:
        0 20px 50px rgba(31, 69, 93, .09),
        0 3px 10px rgba(0,0,0,.025);
}



/* ==========================================================
   BREADCRUMB
   ========================================================== */

body.woocommerce-shop .woocommerce-breadcrumb,
body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb {

    display: inline-flex;

    align-items: center;

    min-height: 35px;

    padding: 7px 12px;

    margin-bottom: 28px;

    background: #eef7fa;

    border: 1px solid #dcebf0;

    border-radius: 999px;

    color: #607989;

    font-size: 13px;
}



/* ==========================================================
   CABECERA DEL CATÁLOGO
   resultados + orden
   ========================================================== */

body.woocommerce-shop .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count {

    color: #496273;

    font-weight: 600;
}


body.woocommerce-shop .woocommerce-ordering select,
body.post-type-archive-product .woocommerce-ordering select {

    min-height: 42px;

    padding: 7px 38px 7px 13px;

    border: 1px solid #d6e2e8;

    border-radius: 9px;

    background-color: #f8fbfc;

    color: #405a6c;
}



/* ==========================================================
   TARJETAS DE PRODUCTOS
   ========================================================== */

body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {

    gap: 20px 0;
}


body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {

    padding: 13px 13px 17px !important;

    border: 1px solid rgba(35, 82, 109, .09);

    border-radius: 15px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbfc 100%
        );

    box-shadow:
        0 7px 18px rgba(31, 66, 88, .055);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


body.woocommerce-shop ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {

    transform: translateY(-4px);

    border-color: rgba(62, 149, 178, .23);

    box-shadow:
        0 16px 30px rgba(31, 66, 88, .12);
}



/* imagen */
body.woocommerce-shop ul.products li.product img,
body.post-type-archive-product ul.products li.product img,
body.tax-product_cat ul.products li.product img {

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #f6fafb,
            #edf4f6
        );

    padding: 5px;

    transition:
        transform .2s ease;
}


body.woocommerce-shop ul.products li.product:hover img,
body.post-type-archive-product ul.products li.product:hover img {
    transform: scale(1.02);
}



/* nombre */
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {

    color: #203f55;

    font-size: 15px !important;

    line-height: 1.38;

    font-weight: 700;

    margin-top: 9px;
}



/* categorías del producto */
body.woocommerce-shop ul.products li.product .ast-woo-product-category,
body.post-type-archive-product ul.products li.product .ast-woo-product-category {

    color: #8496a2;

    font-size: 11px;
}



/* precio */
body.woocommerce-shop ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price {

    color: #246b88 !important;

    font-size: 15px !important;

    font-weight: 800;
}



/* botón producto */
body.woocommerce-shop ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button {

    border-radius: 9px;

    background:
        linear-gradient(
            90deg,
            #28617e,
            #449db6
        );

    color: #fff;

    font-weight: 700;

    border: 0;

    box-shadow:
        0 6px 14px rgba(35, 96, 124, .15);
}



/* ==========================================================
   PAGINACIÓN
   ========================================================== */

.woocommerce nav.woocommerce-pagination ul {
    border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0 !important;
    margin: 3px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {

    min-width: 38px;
    min-height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eef5f8;

    color: #315873;

    font-weight: 700;
}

.woocommerce nav.woocommerce-pagination ul li span.current {

    background:
        linear-gradient(
            90deg,
            #275f7c,
            #4299b3
        );

    color: #fff;
}



/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 921px) {

    body.woocommerce-shop .site-content > .ast-container,
    body.post-type-archive-product .site-content > .ast-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    body.woocommerce-shop #primary,
    body.post-type-archive-product #primary {
        padding: 20px !important;
        border-radius: 16px;
    }

    body.woocommerce-shop #secondary,
    body.post-type-archive-product #secondary {
        border-radius: 15px;
        padding: 18px;
    }
}



/* ==========================================================
   SEA STORE UI 1.1
   ========================================================== */


/* ----------------------------------------------------------
   MENOS ESPACIO ARRIBA
   ---------------------------------------------------------- */

body.woocommerce-shop .site-content > .ast-container,
body.post-type-archive-product .site-content > .ast-container,
body.tax-product_cat .site-content > .ast-container,
body.tax-product_tag .site-content > .ast-container {
    padding-top: 24px !important;
}


body.woocommerce-shop #primary,
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary {
    padding-top: 24px !important;
}


/* Woo deja un header vacío con bastante espacio */
body.woocommerce-shop .woocommerce-products-header:empty,
body.post-type-archive-product .woocommerce-products-header:empty {
    display: none !important;
}


/* breadcrumb más cerca del contenido */
body.woocommerce-shop .woocommerce-breadcrumb,
body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb {
    margin-bottom: 18px !important;
}


/* ----------------------------------------------------------
   BUSCADOR GRANDE SUPERIOR
   ---------------------------------------------------------- */

.sea-shop-search {
    position: relative;

    width: 100%;

    margin:
        4px 0
        26px;

    clear: both;
}


.sea-shop-search input[type="search"] {
    width: 100%;

    height: 54px;

    padding:
        0 52px
        0 48px;

    border: 1px solid #cfdee5 !important;

    border-radius: 14px !important;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fbfc
        ) !important;

    color: #29485d;

    font-size: 16px;

    box-shadow:
        0 5px 15px rgba(30, 71, 96, .055),
        inset 0 1px 2px rgba(0,0,0,.02);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.sea-shop-search input[type="search"]:focus {
    outline: none;

    border-color: #62a9bf !important;

    box-shadow:
        0 0 0 4px rgba(66, 157, 183, .10),
        0 7px 17px rgba(30, 71, 96, .07);
}


.sea-shop-search-icon {
    position: absolute;

    z-index: 2;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 17px;

    opacity: .55;

    pointer-events: none;
}


.sea-shop-search-clear {
    position: absolute;

    right: 17px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: #e7f1f5;

    color: #416479 !important;

    font-size: 20px;

    line-height: 1;

    text-decoration: none !important;
}


/* ----------------------------------------------------------
   RESULTADOS + ORDEN
   ---------------------------------------------------------- */

body.woocommerce-shop
.woocommerce-result-count,
body.post-type-archive-product
.woocommerce-result-count {

    margin-top: 11px !important;
}


body.woocommerce-shop
.woocommerce-ordering,
body.post-type-archive-product
.woocommerce-ordering {

    margin-bottom: 22px !important;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 921px) {

    body.woocommerce-shop
    .site-content > .ast-container,
    body.post-type-archive-product
    .site-content > .ast-container {

        padding-top: 15px !important;
    }


    .sea-shop-search {
        margin-bottom: 18px;
    }


    .sea-shop-search input[type="search"] {
        height: 49px;

        font-size: 15px;
    }


    /* logo correcto sin tamaño gigante */
    .ast-mobile-header-wrap
    .site-logo-img img,

    #ast-mobile-header
    .site-logo-img img {

        width: auto !important;
        max-height: 52px !important;

        object-fit: contain !important;
    }

}


/* ==========================================================
   AJUSTE DE ESPACIOS DEL CATÁLOGO
   ========================================================== */

/* Astra agrega mucho padding dentro del contenedor Woo */
body.woocommerce-shop .ast-woocommerce-container,
body.post-type-archive-product .ast-woocommerce-container,
body.tax-product_cat .ast-woocommerce-container,
body.tax-product_tag .ast-woocommerce-container {
    padding: 22px 30px 32px !important;
    background: transparent !important;
}

/* Cabecera de productos sin huecos heredados */
body.woocommerce-shop .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* Si Astra deja el título oculto ocupando sitio */
body.woocommerce-shop .woocommerce-products-header__title,
body.post-type-archive-product .woocommerce-products-header__title {
    margin: 0 !important;
    padding: 0 !important;
}

/* Breadcrumb */
body.woocommerce-shop .woocommerce-breadcrumb,
body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb {
    margin: 0 0 14px !important;
}

/* Buscador principal más pegado */
.sea-shop-search {
    margin: 0 0 20px !important;
}

/* ==========================================================
   QUITAR BUSCADOR DEL SIDEBAR
   ========================================================== */

body.woocommerce-shop #secondary .widget_search,
body.woocommerce-shop #secondary .widget_product_search,
body.post-type-archive-product #secondary .widget_search,
body.post-type-archive-product #secondary .widget_product_search,
body.tax-product_cat #secondary .widget_search,
body.tax-product_cat #secondary .widget_product_search {
    display: none !important;
}

/* Por si Astra lo genera sin clase de widget */
body.woocommerce-shop #secondary form.search-form,
body.woocommerce-shop #secondary form.woocommerce-product-search,
body.post-type-archive-product #secondary form.search-form,
body.post-type-archive-product #secondary form.woocommerce-product-search {
    display: none !important;
}

/* Evitar margen sobrante del widget oculto */
body.woocommerce-shop #secondary > *:first-child,
body.post-type-archive-product #secondary > *:first-child {
    margin-top: 0 !important;
}


/* ==========================================================
   SEA STORE UI - RETOQUES
   ========================================================== */

/* Breadcrumb casi pegado al buscador */
body.woocommerce-shop .woocommerce-breadcrumb,
body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb {
    margin-bottom: 4px !important;
}

/* Subimos el buscador para eliminar el vacío */
body.woocommerce-shop .sea-shop-search,
body.post-type-archive-product .sea-shop-search,
body.tax-product_cat .sea-shop-search,
body.tax-product_tag .sea-shop-search {
    margin-top: -22px !important;
    margin-bottom: 18px !important;
}


/* ==========================================================
   HEADER
   Astra aplica el fondo sobre barras internas, no sólo masthead
   ========================================================== */

body:not(.home) #masthead,
body:not(.home) #ast-desktop-header,
body:not(.home) #ast-mobile-header,
body:not(.home) .ast-primary-header-bar,
body:not(.home) .main-header-bar {
    background:
        linear-gradient(
            100deg,
            #f4fafc 0%,
            #e8f5f8 48%,
            #dceff5 100%
        ) !important;
}

/* Evitar que contenedores internos vuelvan a pintar blanco */
body:not(.home) #masthead .ast-builder-grid-row-container,
body:not(.home) #masthead .site-primary-header-wrap,
body:not(.home) #ast-desktop-header .ast-builder-grid-row-container,
body:not(.home) #ast-mobile-header .ast-builder-grid-row-container {
    background: transparent !important;
}

/* Un poco más de separación visual respecto al contenido */
body:not(.home) #masthead {
    border-bottom: 1px solid rgba(37, 91, 121, .15) !important;

    box-shadow:
        0 5px 18px rgba(27, 58, 80, .09) !important;
}


/* Mobile */
@media (max-width: 921px) {

    body.woocommerce-shop .sea-shop-search,
    body.post-type-archive-product .sea-shop-search,
    body.tax-product_cat .sea-shop-search {
        margin-top: -12px !important;
    }
}


/* ==========================================================
   FILTRO DE PRECIO MANUAL
   ========================================================== */

.sea-price-filter {
    margin-bottom: 28px;
}

.sea-price-filter h3 {
    margin: 0 0 14px !important;

    padding-bottom: 9px;

    border-bottom:
        2px solid rgba(70,157,185,.20);

    color: #21445d;

    font-size: 18px !important;
    line-height: 1.3;

    font-weight: 750;
}


.sea-price-inputs {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 10px;

    margin-bottom: 13px;
}


.sea-price-inputs label > span {
    display: block;

    margin-bottom: 5px;

    color: #607786;

    font-size: 12px;

    font-weight: 650;
}


.sea-price-field {
    display: flex;

    align-items: center;

    height: 42px;

    overflow: hidden;

    border: 1px solid #d3e0e6;

    border-radius: 9px;

    background: #fff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.sea-price-field:focus-within {
    border-color: #62a9bf;

    box-shadow:
        0 0 0 3px rgba(66,157,183,.10);
}


.sea-price-field > span {
    padding-left: 10px;

    color: #78909e;

    font-size: 13px;
}


.sea-price-field input {
    width: 100% !important;

    min-width: 0;

    height: 100% !important;

    padding:
        0 8px !important;

    border: 0 !important;

    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    color: #314c5d;

    font-size: 13px;
}


.sea-price-field input::-webkit-inner-spin-button,
.sea-price-field input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}


.sea-price-actions {
    display: flex;

    align-items: center;

    gap: 12px;
}


.sea-price-actions button {
    min-height: 36px;

    padding: 0 15px;

    border: 0 !important;

    border-radius: 8px !important;

    background:
        linear-gradient(
            90deg,
            #28637f,
            #46a0b8
        ) !important;

    color: #fff !important;

    font-size: 12px;

    font-weight: 750;

    box-shadow:
        0 5px 12px rgba(40,99,127,.15);
}


.sea-price-actions a {
    color: #537385;

    font-size: 12px;

    font-weight: 650;

    text-decoration: none;
}


@media (max-width: 1100px) {

    .sea-price-inputs {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   PRODUCTOS POPULARES - SIDEBAR
   ========================================================== */

#secondary .product_list_widget {
    margin: 0 !important;
    padding: 0 !important;
}

#secondary .product_list_widget li {
    position: relative;

    min-height: 76px;

    margin: 0 !important;
    padding: 10px 0 !important;

    border-bottom: 1px solid rgba(40, 85, 110, .08) !important;

    overflow: hidden;
}

#secondary .product_list_widget li:last-child {
    border-bottom: 0 !important;
}

/* Enlace + imagen + nombre */
#secondary .product_list_widget li > a {
    display: grid !important;

    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;

    gap: 10px;

    width: 100%;

    color: #29495e !important;

    font-size: 12px;
    line-height: 1.35;

    font-weight: 650;

    text-decoration: none !important;
}

/* Imagen */
#secondary .product_list_widget li img {
    float: none !important;

    width: 54px !important;
    height: 54px !important;

    margin: 0 !important;
    padding: 3px;

    object-fit: contain;

    border-radius: 8px;

    background: #f4f8fa;

    border: 1px solid #e1eaee;

    grid-column: 1;
}

/* Precio debajo del nombre, alineado con el texto */
#secondary .product_list_widget li > .woocommerce-Price-amount,
#secondary .product_list_widget li > del,
#secondary .product_list_widget li > ins {
    display: block;

    margin-left: 68px;
    margin-top: 3px;

    color: #28708d;

    font-size: 12px;

    font-weight: 750;

    text-decoration: none;
}

/* Evitar que textos largos rompan el sidebar */
#secondary .product_list_widget li a {
    overflow-wrap: anywhere;
}


/* ==========================================================
   FIX PRODUCTOS POPULARES SIDEBAR
   ========================================================== */

#secondary .product_list_widget li {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 3px !important;

    min-height: 70px !important;

    padding: 10px 0 !important;
    margin: 0 !important;

    overflow: visible !important;
}

/* Permitimos que imagen y título participen del grid del li */
#secondary .product_list_widget li > a {
    display: contents !important;
}

/* Imagen */
#secondary .product_list_widget li img {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;

    float: none !important;

    width: 54px !important;
    height: 54px !important;

    margin: 0 !important;
    padding: 4px !important;

    object-fit: contain !important;

    border: 1px solid #e0e9ed !important;
    border-radius: 8px !important;

    background: #f7fafb !important;
}

/* Nombre */
#secondary .product_list_widget .product-title {
    grid-column: 2 !important;
    grid-row: 1 !important;

    display: block !important;

    width: auto !important;
    min-width: 0 !important;

    color: #29495e !important;

    font-size: 11.5px !important;
    line-height: 1.32 !important;
    font-weight: 650 !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* Precio */
#secondary .product_list_widget li > .woocommerce-Price-amount,
#secondary .product_list_widget li > ins,
#secondary .product_list_widget li > del {
    grid-column: 2 !important;
    grid-row: 2 !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #28708d !important;

    font-size: 11.5px !important;
    line-height: 1.3 !important;
    font-weight: 750 !important;

    text-decoration: none !important;
}

/* Evitar reglas viejas que empujaban precio/texto */
#secondary .product_list_widget li a {
    width: auto !important;
    min-width: 0 !important;
}


/* ==========================================================
   HEADER SEA - DEGRADADO DEFINITIVO
   Excepto portada
   ========================================================== */

body:not(.home) #masthead,
body:not(.home) #ast-desktop-header,
body:not(.home) #ast-mobile-header,
body:not(.home) .ast-primary-header-bar,
body:not(.home) .main-header-bar,
body:not(.home) .site-primary-header-wrap,
body:not(.home) .ast-builder-grid-row-container,
body:not(.home) .ast-builder-grid-row-container-inner,
body:not(.home) .ast-builder-grid-row {

    background:
        linear-gradient(
            110deg,
            #f9fdff 0%,
            #edf7fa 30%,
            #dceff5 70%,
            #cce6ee 100%
        ) !important;
}

/* borde y relieve */
body:not(.home) #masthead {
    border-bottom: 1px solid rgba(25, 73, 101, .14) !important;

    box-shadow:
        0 7px 22px rgba(24, 65, 89, .11) !important;
}

/* links */
body:not(.home) .main-header-menu > .menu-item > a {
    color: #183b54 !important;
    font-weight: 700 !important;
}

/* carrito y usuario: pequeño fondo para que no queden flotando */
body:not(.home) .ast-site-header-cart,
body:not(.home) .ast-header-account-wrap {
    padding: 7px 9px;

    border-radius: 11px;

    background: rgba(255,255,255,.48);

    border: 1px solid rgba(255,255,255,.55);

    box-shadow:
        0 3px 9px rgba(27, 68, 93, .06);
}

/* mobile */
@media (max-width: 921px) {

    body:not(.home) #ast-mobile-header,
    body:not(.home) #ast-mobile-header .ast-primary-header-bar,
    body:not(.home) #ast-mobile-header .site-primary-header-wrap,
    body:not(.home) #ast-mobile-header .ast-builder-grid-row {

        background:
            linear-gradient(
                110deg,
                #f7fcfe 0%,
                #e6f4f8 55%,
                #d5eaf1 100%
            ) !important;
    }
}


/* ==========================================================
   FONDO GENERAL DE TIENDA
   ========================================================== */

body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {

    background:
        linear-gradient(
            rgba(242,248,251,.72),
            rgba(242,248,251,.72)
        ),
        url("https://libreriasea.org/wp-content/uploads/2026/10/tiendafondo-scaled.jpg")
        center bottom / cover no-repeat fixed !important;
}

/* Paneles internos un poco translúcidos para que el fondo acompañe */
body.woocommerce-shop #primary,
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary,
body.woocommerce-shop #secondary,
body.post-type-archive-product #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary {

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.94) 0%,
            rgba(247,251,252,.92) 100%
        ) !important;

    backdrop-filter: blur(2px);
}

/* Mobile: fondo fijo suele rendir peor */
@media (max-width: 921px) {

    body.woocommerce-shop .site-content,
    body.post-type-archive-product .site-content,
    body.tax-product_cat .site-content,
    body.tax-product_tag .site-content {

        background:
            linear-gradient(
                rgba(242,248,251,.78),
                rgba(242,248,251,.78)
            ),
            url("https://libreriasea.org/wp-content/uploads/2026/10/tiendafondo-scaled.jpg")
            center bottom / cover no-repeat scroll !important;
    }
}


/* ==========================================================
   AJUSTE DE ESCALA DEL FONDO
   ========================================================== */

body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
    background-size: auto, 85% auto !important;
    background-position: center, center bottom !important;
    background-repeat: no-repeat, no-repeat !important;
    background-color: #f2f8fb !important;
}

/* En móvil dejamos un poco más grande para evitar demasiado espacio vacío */
@media (max-width: 921px) {
    body.woocommerce-shop .site-content,
    body.post-type-archive-product .site-content,
    body.tax-product_cat .site-content,
    body.tax-product_tag .site-content {
        background-size: auto, 105% auto !important;
    }
}


/* ==========================================================
   FONDO TIENDA - MOSTRAR MÁS IMAGEN SIN DEJAR HUECOS
   ========================================================== */

body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {

    position: relative;

    background:
        linear-gradient(
            rgba(242,248,251,.72),
            rgba(242,248,251,.72)
        ),
        url("https://libreriasea.org/wp-content/uploads/2026/10/tiendafondo-scaled.jpg")
        center bottom / cover no-repeat fixed !important;
}

/* Segunda capa: muestra prácticamente toda la imagen */
body.woocommerce-shop .site-content::before,
body.post-type-archive-product .site-content::before,
body.tax-product_cat .site-content::before,
body.tax-product_tag .site-content::before {

    content: "";
    position: absolute;
    inset: 0;

    background:
        url("https://libreriasea.org/wp-content/uploads/2026/10/tiendafondo-scaled.jpg")
        center bottom / contain no-repeat;

    opacity: .30;
    pointer-events: none;
}

/* Contenido por encima */
body.woocommerce-shop .site-content > *,
body.post-type-archive-product .site-content > *,
body.tax-product_cat .site-content > *,
body.tax-product_tag .site-content > * {
    position: relative;
    z-index: 1;
}


/* MOBILE */
@media (max-width: 921px) {

    body.woocommerce-shop .site-content,
    body.post-type-archive-product .site-content,
    body.tax-product_cat .site-content,
    body.tax-product_tag .site-content {

        background:
            linear-gradient(
                rgba(242,248,251,.78),
                rgba(242,248,251,.78)
            ),
            url("https://libreriasea.org/wp-content/uploads/2026/10/tiendafondo-scaled.jpg")
            center bottom / cover no-repeat scroll !important;
    }

    body.woocommerce-shop .site-content::before,
    body.post-type-archive-product .site-content::before,
    body.tax-product_cat .site-content::before,
    body.tax-product_tag .site-content::before {

        background-size: contain;
        background-position: center bottom;
    }
}


/* ==========================================================
   FONDO TIENDA - IMAGEN COMPLETA ESTIRADA
   ========================================================== */

body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
    background-size: auto, 100% 100% !important;
    background-position: center, center center !important;
    background-repeat: no-repeat, no-repeat !important;
}

/* Mobile */
@media (max-width: 921px) {
    body.woocommerce-shop .site-content,
    body.post-type-archive-product .site-content,
    body.tax-product_cat .site-content,
    body.tax-product_tag .site-content {
        background-size: auto, 100% 100% !important;
        background-position: center, center center !important;
    }
}


/* ==========================================================
   FONDO TIENDA - IMAGEN COMPLETA ESTIRADA
   ========================================================== */

body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
    background-size: auto, 100% 100% !important;
    background-position: center, center center !important;
    background-repeat: no-repeat, no-repeat !important;
}

/* Mobile */
@media (max-width: 921px) {
    body.woocommerce-shop .site-content,
    body.post-type-archive-product .site-content,
    body.tax-product_cat .site-content,
    body.tax-product_tag .site-content {
        background-size: auto, 100% 100% !important;
        background-position: center, center center !important;
    }
}


/* ==========================================================
   CORRECCIÓN: QUITAR SEGUNDA CAPA DUPLICADA
   ========================================================== */

body.woocommerce-shop .site-content::before,
body.post-type-archive-product .site-content::before,
body.tax-product_cat .site-content::before,
body.tax-product_tag .site-content::before {
    content: none !important;
    display: none !important;
}

/* Mantener una sola imagen estirada */
body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
    background-size: auto, 100% 100% !important;
    background-position: center, center center !important;
    background-repeat: no-repeat, no-repeat !important;
}



/* ==========================================================
   PRODUCTO INDIVIDUAL - ESTRUCTURA GENERAL
   ========================================================== */

/* Mismo fondo suave que el resto de la tienda */
body.single-product .site-content {
    background: #eef9fc !important;
    padding: 42px 0 70px !important;
}

/* Aprovechar mucho más el ancho de pantalla */
body.single-product .site-content .ast-container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Quitar restricciones del contenido principal */
body.single-product #primary {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Ficha completa como tarjeta */
body.single-product div.product {
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(37,111,143,.12);
    border-radius: 22px;
    padding: 34px;
    box-shadow:
        0 18px 45px rgba(31,78,99,.10),
        0 2px 8px rgba(31,78,99,.05);
}

/* Dar más aire a las dos columnas principales */
body.single-product div.product .woocommerce-product-gallery {
    margin-bottom: 24px;
}

body.single-product div.product .summary {
    padding: 8px 10px 10px 20px;
}


/* MOBILE */
@media (max-width: 921px) {

    body.single-product .site-content {
        padding: 22px 0 45px !important;
    }

    body.single-product .site-content .ast-container {
        width: calc(100% - 24px) !important;
    }

    body.single-product div.product {
        padding: 20px 16px;
        border-radius: 16px;
    }

    body.single-product div.product .summary {
        padding: 10px 0 0;
    }
}



/* ==========================================================
   PRODUCTO INDIVIDUAL - MISMO FONDO QUE LA TIENDA
   ========================================================== */

body.single-product .site-content {
    background:
        linear-gradient(
            rgba(242,248,251,.72),
            rgba(242,248,251,.72)
        ),
        url("https://libreriasea.org/wp-content/uploads/2026/10/tiendafondo-scaled.jpg")
        center center / 100% 100% no-repeat fixed !important;
}


/* ==========================================================
   PRODUCTO INDIVIDUAL - OCULTAR OPINIONES / COMENTARIOS
   ========================================================== */

/* Pestaña Opiniones */
body.single-product .woocommerce-tabs ul.tabs li.reviews_tab {
    display: none !important;
}

/* Bloque completo de reviews */
body.single-product #reviews,
body.single-product .woocommerce-Reviews,
body.single-product #comments,
body.single-product #respond,
body.single-product .comment-respond {
    display: none !important;
}


/* MOBILE */
@media (max-width: 921px) {

    body.single-product .site-content {
        background:
            linear-gradient(
                rgba(242,248,251,.78),
                rgba(242,248,251,.78)
            ),
            url("https://libreriasea.org/wp-content/uploads/2026/10/tiendafondo-scaled.jpg")
            center center / 100% 100% no-repeat scroll !important;
    }
}



/* ==========================================================
   PRODUCTO INDIVIDUAL - TIPOGRAFÍA Y DETALLES
   ========================================================== */

/* Breadcrumb */
body.single-product .woocommerce-breadcrumb {
    font-size: 12px !important;
    color: #78909c !important;
    margin-bottom: 14px !important;
}

body.single-product .woocommerce-breadcrumb a {
    color: #39738d !important;
    text-decoration: none !important;
}


/* Categoría superior */
body.single-product .product_meta,
body.single-product .product_meta a {
    font-size: 12px !important;
}

body.single-product .summary .posted_in {
    color: #78909c;
}


/* Título */
body.single-product .product_title {
    font-family: inherit !important;
    font-size: clamp(26px, 2.3vw, 36px) !important;
    line-height: 1.15 !important;
    font-weight: 750 !important;
    letter-spacing: -.5px;
    color: #17384a !important;
    margin-bottom: 16px !important;
}


/* Precio */
body.single-product .summary .price {
    font-family: inherit !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #176987 !important;
    margin: 6px 0 16px !important;
}

body.single-product .summary .price del {
    font-size: 17px !important;
    color: #9aa8ae !important;
    opacity: .8;
}

body.single-product .summary .price ins {
    text-decoration: none !important;
}


/* ==========================================================
   STOCK
   ========================================================== */

body.single-product .stock {
    display: inline-flex !important;
    align-items: center;
    width: auto;
    padding: 7px 11px !important;
    margin: 0 0 18px !important;

    border-radius: 999px;
    background: #e9f8ef;

    color: #287b4d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.single-product .stock.out-of-stock {
    background: #fff0f0;
    color: #a33a3a !important;
}


/* ==========================================================
   CANTIDAD + BOTÓN
   ========================================================== */

body.single-product form.cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;

    margin-top: 4px !important;
    margin-bottom: 22px !important;
}


/* Cantidad */
body.single-product form.cart .quantity {
    margin: 0 !important;
}

body.single-product form.cart .qty {
    width: 70px !important;
    min-height: 48px !important;

    border: 1px solid #cbdde5 !important;
    border-radius: 10px !important;

    background: #fff !important;
    color: #17384a !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    box-shadow: none !important;
}


/* Agregar al carrito */
body.single-product .single_add_to_cart_button {
    min-height: 48px !important;
    min-width: 230px !important;

    padding: 0 25px !important;

    border: 0 !important;
    border-radius: 10px !important;

    background: linear-gradient(
        135deg,
        #226f8e,
        #3194aa
    ) !important;

    color: #fff !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    letter-spacing: .35px !important;
    text-transform: uppercase;

    box-shadow: 0 7px 18px rgba(34,111,142,.20) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}

body.single-product .single_add_to_cart_button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 23px rgba(34,111,142,.28) !important;
}

body.single-product .single_add_to_cart_button:active {
    transform: translateY(0);
}


/* ==========================================================
   SKU / CATEGORÍAS / META
   ========================================================== */

body.single-product .product_meta {
    margin-top: 20px !important;
    padding-top: 16px !important;

    border-top: 1px solid #e4edf1;

    color: #748994 !important;

    font-size: 11px !important;
    line-height: 1.8 !important;
}

body.single-product .product_meta > span {
    margin-right: 14px;
}

body.single-product .product_meta a {
    color: #39758f !important;
    text-decoration: none !important;
}


/* ==========================================================
   GALERÍA
   ========================================================== */

body.single-product .woocommerce-product-gallery {
    padding: 14px !important;

    background: #fff;
    border: 1px solid #e7eef1;
    border-radius: 16px;

    box-shadow: 0 6px 20px rgba(30,73,92,.06);
}

body.single-product .woocommerce-product-gallery img {
    border-radius: 10px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    body.single-product .product_title {
        font-size: 25px !important;
    }

    body.single-product .summary .price {
        font-size: 24px !important;
    }

    body.single-product form.cart {
        display: grid !important;
        grid-template-columns: 70px 1fr;
        width: 100%;
    }

    body.single-product .single_add_to_cart_button {
        min-width: 0 !important;
        width: 100% !important;
    }
}



/* ==========================================================
   PRODUCTO INDIVIDUAL 2.4
   TARJETA + PROPORCIONES + ESPACIADO
   ========================================================== */


/* ----------------------------------------------------------
   TARJETA PRINCIPAL
   Degradado muy suave blanco -> gris azulado
   ---------------------------------------------------------- */

body.single-product div.product {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.98) 0%,
            rgba(244,248,250,.96) 100%
        ) !important;

    border: 1px solid rgba(41,105,132,.13) !important;
    border-radius: 22px !important;

    padding: 36px !important;

    box-shadow:
        0 18px 45px rgba(31,78,99,.10),
        0 3px 10px rgba(31,78,99,.05) !important;
}


/* ----------------------------------------------------------
   DISTRIBUCIÓN PRINCIPAL
   54% imágenes / 42% información
   ---------------------------------------------------------- */

body.single-product div.product .woocommerce-product-gallery {
    width: 54% !important;
    max-width: 54% !important;

    float: left !important;

    margin: 0 0 30px 0 !important;
}

body.single-product div.product .summary {
    width: 42% !important;
    max-width: 42% !important;

    float: right !important;

    padding:
        10px
        6px
        15px
        28px !important;

    margin: 0 !important;
}


/* ----------------------------------------------------------
   GALERÍA
   Darle más presencia al producto
   ---------------------------------------------------------- */

body.single-product .woocommerce-product-gallery {
    box-sizing: border-box;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdfe 100%
        ) !important;

    border: 1px solid #e2ecef !important;
    border-radius: 18px !important;

    padding: 18px !important;

    box-shadow:
        0 8px 24px rgba(30,73,92,.065) !important;
}


/* Imagen principal */
body.single-product
.woocommerce-product-gallery
.woocommerce-product-gallery__image img {

    width: 100% !important;
    height: auto !important;

    object-fit: contain;

    border-radius: 12px !important;
}


/* Miniaturas */
body.single-product .flex-control-thumbs {
    margin-top: 14px !important;
}

body.single-product .flex-control-thumbs li {
    padding: 4px !important;
}

body.single-product .flex-control-thumbs img {
    border: 1px solid #e1eaee !important;
    border-radius: 9px !important;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        opacity .18s ease;
}

body.single-product .flex-control-thumbs img:hover,
body.single-product .flex-control-thumbs img.flex-active {

    border-color: #4c9bb4 !important;

    box-shadow:
        0 3px 10px rgba(38,118,148,.14);

    opacity: 1 !important;
}


/* ----------------------------------------------------------
   INFORMACIÓN
   Mejor separación visual
   ---------------------------------------------------------- */

body.single-product .summary .woocommerce-breadcrumb {
    margin-bottom: 16px !important;
}

body.single-product .summary .product_title {
    margin-top: 2px !important;
    margin-bottom: 17px !important;
}

body.single-product .summary .price {
    margin-top: 4px !important;
    margin-bottom: 17px !important;
}


/* Separador muy suave antes del formulario */
body.single-product .summary form.cart {
    padding-top: 5px !important;
}


/* Meta inferior */
body.single-product .product_meta {
    margin-top: 24px !important;
}


/* ----------------------------------------------------------
   CONTENIDO INFERIOR
   Descripción / pestañas / relacionados ocupan todo el ancho
   ---------------------------------------------------------- */

body.single-product .woocommerce-tabs,
body.single-product .related,
body.single-product .upsells {

    clear: both !important;
    width: 100% !important;
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 921px) {

    body.single-product div.product {
        padding: 24px !important;
        border-radius: 18px !important;
    }

    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary {

        float: none !important;

        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-product div.product .woocommerce-product-gallery {
        margin-bottom: 28px !important;
    }

    body.single-product div.product .summary {
        padding: 4px 2px 10px !important;
    }
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    body.single-product div.product {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    body.single-product .woocommerce-product-gallery {
        padding: 10px !important;
        border-radius: 14px !important;
    }

    body.single-product div.product .summary {
        padding-top: 10px !important;
    }
}



/* ==========================================================
   PRODUCTO INDIVIDUAL 2.5
   CORRECCION REAL DE ANCHO + DEGRADADO
   ========================================================== */


/* Contenedor exterior: ancho real de la ficha */
body.single-product .site-content > .ast-container,
body.single-product .site-content .ast-container {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* Astra/WooCommerce tiene wrappers internos que pueden
   seguir restringiendo el producto */
body.single-product #primary,
body.single-product #primary .site-main,
body.single-product .ast-woocommerce-container,
body.single-product .woocommerce {
    width: 100% !important;
    max-width: none !important;

    flex: 0 0 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* La ficha tiene que ocupar TODO el wrapper */
body.single-product div.product {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f4f7f9 48%,
            #e8eff3 100%
        ) !important;

    border: 1px solid rgba(41,105,132,.15) !important;
}


/* ==========================================================
   COLUMNAS
   ========================================================== */

body.single-product div.product .woocommerce-product-gallery {
    float: left !important;

    width: 54% !important;
    max-width: 54% !important;

    box-sizing: border-box !important;
}

body.single-product div.product .summary {
    float: right !important;

    width: 42% !important;
    max-width: 42% !important;

    box-sizing: border-box !important;

    padding-left: 30px !important;
}


/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media (max-width: 921px) {

    body.single-product .site-content > .ast-container,
    body.single-product .site-content .ast-container {
        width: calc(100% - 24px) !important;
    }

    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary {
        float: none !important;

        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-product div.product .summary {
        padding-left: 0 !important;
        padding-top: 20px !important;
    }
}



/* ==========================================================
   HOME — TIENDA UCASAL
   Oculta temporalmente. No borrar: puede volver a activarse.
   ========================================================== */

body.home .elementor-element-957d0fb {
    display: none !important;
}

