/*!
 * El Doctor — Estilos de tienda (WooCommerce)
 * -------------------------------------------------------------
 * Tarjetas de producto, barra de filtros y paginación portadas de
 * la plantilla MedShop, adaptadas al shell Bootstrap 3 de Doctor.
 *
 * MedShop original: Bootstrap 5 + jQuery 3.7 (incompatible con el
 * resto del sitio). Aquí solo viaja el CSS; la grilla se resuelve
 * con CSS Grid para no depender de ninguna versión de Bootstrap.
 */

:root {
	/* Marca El Doctor — verde tomado del logo (#97D33D) */
	--eld-green:        #97D33D; /* logo / fondos con texto oscuro  */
	--eld-green-btn:    #527D19; /* CTA con texto blanco  4.88:1 AA */
	--eld-green-dark:   #456A15; /* hover / links         6.31:1    */
	--eld-ink:          #1F2A16;
	--eld-muted:        #6E7A66;

	/* Variables que espera el CSS portado de MedShop */
	--thm-font:              'Poppins', sans-serif;
	--thm-font-2:            'Lato', sans-serif;
	--thm-primary-color:     #527D19;
	--thm-primary-color-rgb: 82, 125, 25;
	--thm-secondary-color:   #97D33D;
	--thm-body-font-color:   #6E7A66;
	--thm-body-font-size:    15px;
	--thm-body-font-weight:  400;
	--thm-body-line-height:  28px;
	--thm-heading-font-color: #1F2A16;
	--thm-white:             #ffffff;
	--thm-black:             #1F2A16;
	--thm-black-rgb:         31, 42, 22;
	--thm-gray:              #6E7A66;
	--thm-gray-bg:           #F4F7F0;
	--thm-border-color:      #e4e9de;
	--thm-border-radius:     10px;
}

/* --- portado de MedShop style.css (107 reglas) --- */

.btn-one {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    padding-top: 7px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 3px;
    background-color: transparent;
    color: var(--thm-black);
    font-size: 15px;
    line-height: 40px;
    font-family: var(--thm-font-2);
    font-weight: 500;
    border-radius: 0px;
    text-transform: uppercase;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    z-index: 2;
}

.btn-one:after {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    transform: scaleX(1);
    transition-duration: 800ms;
    border: 1px solid var(--thm-black);
    z-index: -1;
}

.btn-one:hover:after {
    transform: scaleX(0);
    transition-duration: 1500ms;
}

.btn-one:before {
    position: absolute;
    top: 0px;
    left: -10px;
    bottom: 0;
    right: 100%;
    content: "";
    background: var(--thm-black);
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    border-radius: 0%;
    transition-duration: 800ms;
    z-index: 1;
}

.btn-one:hover:before {
    right: 0px;
    left: 0;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.btn-one .txt {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1;
}

.btn-one:hover,
.btn-one:focus {
    color: #ffffff;
    -webkit-box-shadow: 2px 2px 20px 0px rgba(var(--thm-black-rgb), 0.1);
    -moz-box-shadow: 2px 2px 20px 0px rgba(var(--thm-black-rgb), 0.1);
    box-shadow: 2px 2px 20px 0px rgba(var(--thm-black-rgb), 0.1);
}

.btn-one i {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    margin-left: 10px;
    top: -3px;
    z-index: 1;
}

.styled-pagination {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    padding-top: 20px;
}

.styled-pagination.pdtop0 {
    padding-top: 0;
}

.styled-pagination li {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.styled-pagination li:last-child {
    margin-right: 0;
}

.styled-pagination li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 50px;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #D9D9D9;
    color: var(--thm-gray);
    font-size: 20px;
    line-height: 48px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    transition: all 500ms ease;
    font-family: var(--thm-font-2);
    z-index: 1;
}

.styled-pagination li a span:before {
    position: relative;
    top: -1px;
    font-size: 18px;
}

.styled-pagination li.prev a span:before {
    position: relative;
    display: inline-block;
    padding-right: 8px;
}

.styled-pagination li.next a span:before {
    position: relative;
    display: inline-block;
    padding-left: 8px;
}

.styled-pagination li:hover a,
.styled-pagination li.active a {
    color: #ffffff;
    border-color: var(--thm-primary-color);
    background: var(--thm-primary-color);
}

.styled-pagination li.prev a,
.styled-pagination li.next a {
    width: 60px;
}

.styled-pagination li.prev a:hover,
.styled-pagination li.next a:hover {
    color: #ffffff;
}

.products-style1 {
    background: #ffffff;
    padding: 140px 0px 110px;
}

.products-style1 .auto-container {
    max-width: 1740px;
    width: 100%;
}

.products-style1__inner {
    position: relative;
    display: block;
}

.products-style1__inner>ul {
    position: relative;
    display: block;
    margin-left: -12px;
    margin-right: -12px;
}

.products-style1__inner>ul>li {
    position: relative;
    display: block;
    float: left;
    width: 20%;
    padding: 0px 12px 0px;
}

.products-style1__single {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.products-style1__single-img {
    position: relative;
    display: block;
    z-index: 1;
}

.products-style1__single-img .text-box {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 30px;
    border-radius: 4px;
    background: #e94220;
    color: var(--thm-white);
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    font-family: var(--thm-font);
}

.products-style1__single-img .overlay-box {
    position: absolute;
    top: 25px;
    right: 25px;
    opacity: 0;
    -webkit-transform: perspective(400px) rotateX(20deg) translateX(100%);
    -ms-transform: perspective(400px) rotateX(20deg) translateX(100%);
    transform: perspective(400px) rotateX(20deg) translateX(100%);
    -webkit-transform-origin: bottom;
    -ms-transform-origin: bottom;
    transform-origin: bottom;
    transition-delay: .1s;
    transition-timing-function: ease-in-out;
    transition-duration: .5s;
    transition-property: all;
    z-index: 5;
}

.products-style1__single:hover .products-style1__single-img .overlay-box {
    opacity: 1.0;
    -webkit-transform: perspective(400px) rotateX(0deg) translateX(0%);
    -ms-transform: perspective(400px) rotateX(0deg) translateX(0%);
    transform: perspective(400px) rotateX(0deg) translateX(-0%);
    transition-delay: .3s;
    transition-timing-function: ease-in-out;
    transition-duration: .5s;
    transition-property: all;
}

.products-style1__single-img .overlay-box>ul {
    position: relative;
    display: block;
}

.products-style1__single-img .overlay-box>ul>li {
    position: relative;
    display: block;
    width: 100%;
    float: none;
    padding: 0px 0px 0px;
    margin-bottom: 15px;
}

.products-style1__single-img .overlay-box>ul>li:last-child {
    margin-bottom: 0px;
}

.products-style1__single-img .overlay-box>ul>li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--thm-black);
    border-radius: 50%;
    transition: all 200ms linear;
    transition-delay: 0.1s;
}

.products-style1__single-img .overlay-box>ul>li a:hover {
    background-color: var(--thm-primary-color);
}

.products-style1__single-img .overlay-box>ul>li a span {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-size: 15px;
    line-height: 15px;
    transition: all 200ms linear;
    transition-delay: 0.1s;
}

.products-style1__single-img .inner {
    position: relative;
    display: block;
    overflow: hidden;
}

.products-style1__single-img .inner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    width: 0;
    background-color: var(--thm-primary-color);
    z-index: 3;
}

.products-style1__single:hover .products-style1__single-img .inner:before {
    width: 100%;
    transition: width 0.2s linear;
}

.products-style1__single-img .inner:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 0%;
    background-color: var(--thm-primary-color);
    z-index: 3;
}

.products-style1__single:hover .products-style1__single-img .inner:after {
    height: 100%;
    transition: height 0.2s linear;
    transition-delay: 0.3s;
}

.products-style1__single .border-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 0%;
    background-color: var(--thm-primary-color);
    z-index: 3;
}

.products-style1__single:hover .border-left {
    height: 100%;
    transition: height 0.2s linear;
}

.products-style1__single .border-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 1px;
    width: 0%;
    background-color: var(--thm-primary-color);
    border-bottom: none !important;
    z-index: 3;
}

.products-style1__single:hover .border-bottom {
    width: 100%;
    transition: width 0.2s linear;
    transition-delay: 0.3s;
}

.products-style1__single-img .inner img {
    width: 100%;
}

.products-style1__single-img .inner .overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #ffffff;
    transition: width 0.5s ease;
    transition: all 0.5s ease;
}

.products-style1__single:hover .products-style1__single-img .inner .overlay-img {
    width: 100%;
}

.products-style1__single-img .inner .overlay-img img {
    transform: translatex(50%) scalex(2);
    opacity: 0;
    filter: blur(10px);
    object-fit: cover;
    transition: all 0.5s ease-in-out 0.3s;
}

.products-style1__single:hover .products-style1__single-img .inner .overlay-img img {
    transform: translatex(0%) scalex(1);
    opacity: 0.30;
    filter: blur(0px);
}

.products-style1__single-content {
    position: relative;
    display: block;
    padding-top: 25px;
}

.products-style1__single-content h3 {
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 13px;
}

.products-style1__single-content h3 a {
    color: var(--thm-black);
}

.products-style1__single-content h3 a:hover {
    color: var(--thm-primary-color);
}

.products-style1__single-content p {
    color: var(--thm-primary-color);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    font-family: var(--thm-font-2);
}

.products-style1__single-content p del {
    position: relative;
    display: inline-block;
    padding-left: 3px;
    color: #868686;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    font-family: var(--thm-font);
}

.products-style1__single-content .btn-box {
    position: relative;
    display: block;
    margin-top: 30px;
}

.products-style1__single--style3 .products-style1__single-img .overlay-box>ul>li a {
    width: 30px;
    height: 30px;
}

.products-style1__single--style3 .products-style1__single-img .overlay-box>ul>li a span {
    font-size: 14px;
    line-height: 14px;
}

.products-style1__single--style3 .products-style1__single-img .overlay-box>ul>li {
    margin-bottom: 10px;
}

.products-style1__single--style3 .products-style1__single-img .inner:before {
    display: none;
}

.products-style1__single--style3 .products-style1__single-img .inner:after {
    display: none;
}

.products-style1__single--style3:hover .products-style1__single-img .inner .overlay-img img {
    opacity: 0.60;
}

.products-style1__single--best-seller {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 7px;
    margin-bottom: 24px;
    z-index: 1;
}

.products-style1__single--best-seller:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 1px solid #e6e7e9;
    border-radius: 7px;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
    transition: all 200ms linear 0.1s;
    z-index: -1;
}

.products-style1__single--best-seller:hover:before {
    border-color: var(--thm-primary-color);
}

.products-style1__single--best-seller .products-style1__single-img {
    padding: 1px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
}

.products-style1__single--best-seller .products-style1__single-img .inner:before {
    display: none;
}

.products-style1__single--best-seller .products-style1__single-img .inner:after {
    display: none;
}

.products-style1__single--best-seller .products-style1__single-content {
    padding-top: 25px;
    padding-left: 30px;
    padding-bottom: 30px;
    padding-right: 30px;
}

.products-style1__single--best-seller .products-style1__single-img .overlay-box>ul>li {
    margin-bottom: 5px;
}

.shop-style1 {
    position: relative;
    display: block;
    background: #ffffff;
    padding: 140px 0 140px;
    z-index: 10;
}

.shop-page-top-info {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 50px;
}

.shop-page-top-info .filter-box {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.shop-page-top-info .filter-box h6 {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--thm-black);
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    text-transform: uppercase;
}

.shop-page-top-info .filter-box h6 span {
    position: relative;
    display: inline-block;
    top: -2px;
    padding-right: 8px;
}

.shop-page-top-info .showing-results {
    position: relative;
    display: block;
}

.shop-page-top-info .showing-results p {
    color: var(--thm-black);
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    text-transform: capitalize;
    font-family: var(--thm-font-2);
}

.shop-page-top-info .right-box {
    position: relative;
    display: flex;
    align-items: center;
}

.shop-page-top-info .right-box .text {
    position: relative;
    display: block;
    width: 90px;
    text-align: left;
}

.shop-page-top-info .right-box .text p {
    color: var(--thm-body-font-color);
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    text-transform: capitalize;
    font-family: var(--thm-font);
}

.shop-page-top-info .right-box .select-box {
    width: 260px;
    height: 50px;
    padding-left: 20px;
    border: 1px solid #e6e7e9;
}

.shop-page-top-info .right-box .nice-select {
    position: relative;
    display: block;
    height: 48px;
    line-height: 48px;
    background: transparent;
    border: 0px solid transparent !important;
    color: var(--thm-primary-color);
    font-family: var(--thm-font);
    border-radius: 0px;
    font-size: 16px;
    font-weight: 400;
    padding-left: 0px;
    padding-right: 0px;
}

.shop-page-top-info .right-box .nice-select:after {
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #a9a6ad;
    border-right: 2px solid #a9a6ad;
    right: 20px;
    margin-top: 0px;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%) rotate(45deg);
}

.shop-page-top-info .right-box .nice-select .list {
    background-color: #ffffff;
    border-radius: 0px;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    padding: 0px 0 0px;
    margin-top: 10px;
    -webkit-transform-origin: 100% 0;
    -ms-transform-origin: 100% 0;
    transform-origin: 100% 0;
    -webkit-transform: scale(1.0) translateY(-30px);
    -ms-transform: scale(1.0) translateY(-30px);
    transform: scale(1.0) translateY(-30px);
    -webkit-transition: all 0.4s linear;
    -o-transition: all 0.4s linear;
    transition: all 0.4s linear;
    height: 0;
    width: 100%;
    left: auto !important;
}

.shop-page-top-info .right-box .nice-select.open .list {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: scale(1) translateY(0);
    -ms-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
    height: auto;
}

.shop-page-top-info .right-box .nice-select .option {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 15px;
    line-height: 40px;
    min-height: 40px;
}

.shop-style3__content .products-style1__single--best-seller {
    border-radius: 0px;
    margin-bottom: 30px;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
    transition: all 200ms linear 0.1s;
}

.shop-style3__content .products-style1__single--best-seller:hover {
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.10);
}

.shop-style3__content .products-style1__single--best-seller:before {
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    border-radius: 0px;
}

.shop-style3__content .products-style1__single--best-seller:hover:before {
    border-color: var(--thm-white);
}

.shop-style3__content .products-style1__single--best-seller .row {
    --bs-gutter-x: 0;
}

.shop-style3__content .products-style1__single--best-seller .products-style1__single-img {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    padding: 0;
    width: 440px;
}

.shop-style3__content .products-style1__single--best-seller .products-style1__single-content {
    padding: 0px;
}

.shop-style3__content .products-style1__single-content {
    position: relative;
    display: block;
    margin-left: 80px;
    padding: 40px 0 41px !important;
    padding-right: 40px !important;
}

.shop-style3__content .products-style1__single-content h3 {
    font-size: 26px;
    line-height: 36px;
}

.shop-style3__content .products-style1__single-content .text-box {
    position: relative;
    display: block;
    margin-top: 16px;
}

.shop-style3__content .products-style1__single-content .text-box p {
    font-family: var(--thm-font);
    color: var(--thm-body-font-color);
    font-size: var(--thm-body-font-size);
    line-height: var(--thm-body-line-height);
    font-weight: var(--thm-body-font-weight);
    margin: 0;
}

.products-style1--products-details {
    padding-top: 0px;
}

.product-details-info-box .button-box .btn-one {
    color: var(--thm-black);
    padding: 5px 40px 0;
    line-height: 56px;
}

.product-details-info-box .button-box .btn-one:hover {
    color: #ffffff;
}

.product-details-info-box .button-box .btn-one:after {
    background-color: transparent;
}

.product-details-info-box .button-box .btn-one:before {
    background-color: var(--thm-primary-color);
}

.my-account-page__form .button-box .btn-one {
    width: 100%;
    justify-content: center;
    text-transform: none;
    font-size: 17px;
    text-transform: uppercase;
    line-height: 50px;
}

.error-content .btns-box .btn-one {
    color: #000000;
}

.error-content .btns-box:hover .btn-one {
    color: #ffffff;
}

.error-content .btns-box .btn-one::after {
    background-color: #ffffff;
}

.error-content .btns-box .btn-one::before {
    background-color: var(--thm-primary-color);
}

/* --- portado de MedShop responsive.css (5 reglas) --- */
@media only screen and (min-width: 1200px) and (max-width: 1700px) {

    .products-style1 .auto-container {
        max-width: 1000px;
    }

    .products-style1__inner>ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .products-style1__inner>ul>li {
        width: 50%;
    }
}
@media only screen and (min-width: 1200px) and (max-width: 1350px) {

    .products-style1__single-content h3 {
        font-size: 18px;
        line-height: 28px;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {

    .products-style1 .auto-container {
        max-width: 960px;
    }

    .products-style1__inner>ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .products-style1__inner>ul>li {
        width: 50%;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {

    .products-style1 .auto-container {
        max-width: 720px;
    }

    .products-style1__inner>ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .products-style1__inner>ul>li {
        width: 50%;
    }

    .shop-style2__content .shop-page-top-info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .shop-style2__content .shop-page-top-info .showing-results {
        margin: 9px 0 10px;
    }

    .shop-style2__content .shop-page-top-info .grid-list-view-box {
        margin-top: 20px;
    }

    .shop-style3__content .shop-page-top-info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .shop-style3__content .shop-page-top-info .showing-results {
        margin: 9px 0 10px;
    }

    .shop-style3__content .shop-page-top-info .grid-list-view-box {
        margin-top: 20px;
    }

    .shop-style3__content .products-style1__single--best-seller .products-style1__single-img {
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        width: 100%;
    }

    .shop-style3__content .products-style1__single-content {
        margin-left: 0px;
        padding: 40px 40px 41px !important;
        padding-right: 40px !important;
    }
}
@media only screen and (max-width: 767px) {

    .products-style1 .auto-container {
        max-width: 540px;
    }

    .products-style1__inner>ul>li {
        width: 100%;
    }

    .shop-page-top-info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 50px;
    }

    .shop-page-top-info .right-box .select-box {
        width: 190px;
    }

    .shop-page-top-info .showing-results {
        margin-top: 11px;
        margin-bottom: 15px;
    }

    .shop-style3__content .shop-page-top-info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .shop-style3__content .shop-page-top-info .showing-results {
        margin: 9px 0 10px;
    }

    .shop-style3__content .shop-page-top-info .grid-list-view-box {
        margin-top: 20px;
    }

    .shop-style3__content .products-style1__single--best-seller .products-style1__single-img {
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        width: 100%;
    }

    .shop-style3__content .products-style1__single-content {
        margin-left: 0px;
        padding: 40px 30px 41px !important;
        padding-right: 30px !important;
    }

    .shop-style3__content .products-style1__single-content h3 br {
        display: none;
    }
}
/* =============================================================
   Puente WooCommerce → markup MedShop
   ============================================================= */

/* --- Grilla de productos (sin Bootstrap) --- */
body.eld-shop ul.products,
body .eld-shop ul.products,
body.eld-shop .products-grid,
body .eld-shop .products-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.eld-shop ul.products::before,
body.eld-shop ul.products::after,
body .eld-shop ul.products::before,
body .eld-shop ul.products::after { content: none; }

body.eld-shop ul.products li.product,
body .eld-shop ul.products li.product {
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
}

@media (max-width: 1199px) { body.eld-shop ul.products, body .eld-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width:  991px) { body.eld-shop ul.products, body .eld-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width:  575px) { body.eld-shop ul.products, body .eld-shop ul.products { grid-template-columns: 1fr; } }

/* --- Sidebar + contenido --- */
.eld-shop .eld-shop-layout { display: flex; gap: 40px; align-items: flex-start; }
.eld-shop .eld-shop-main   { flex: 1 1 auto; min-width: 0; }
.eld-shop .eld-shop-aside  { flex: 0 0 280px; width: 280px; }
@media (max-width: 991px) {
	.eld-shop .eld-shop-layout { display: block; }
	.eld-shop .eld-shop-aside  { width: 100%; margin-top: 40px; }
}

/* --- La imagen del producto siempre cuadrada --- */
.eld-shop .products-style1__single-img .inner {
	aspect-ratio: 1 / 1;
	background: #fff;
}
.eld-shop .products-style1__single-img .inner > img,
.eld-shop .products-style1__single-img .inner .overlay-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 18px;
}

/* --- Título del producto: 2 líneas máximo, altura pareja --- */
.eld-shop .products-style1__single-content h3 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 52px;
	font-size: 17px;
	line-height: 26px;
}

/* --- Precio --- */
.eld-shop .products-style1__single-content .price,
.eld-shop .products-style1__single-content p.price {
	color: #527D19;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 14px;
}
.eld-shop .products-style1__single-content .price del {
	color: #6E7A66;
	font-size: 15px;
	font-weight: 400;
	margin-left: 8px;
	opacity: .75;
}
.eld-shop .products-style1__single-content .price ins { text-decoration: none; }

/* Aviso de precio provisional (mientras no llega la lista real del cliente) */
.eld-shop .eld-price-pending {
	display: block;
	margin-top: 2px;
	color: #6E7A66;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: none;
}

/* --- Botón añadir al carrito (hereda .btn-one de MedShop) --- */
.eld-shop .products-style1__single-content .btn-box .button,
.eld-shop .products-style1__single-content .btn-box .btn-one {
	border: 0;
	cursor: pointer;
	background: transparent;
}
.eld-shop .products-style1__single-content .btn-box .added_to_cart { display: none; }
.eld-shop .products-style1__single-content .btn-box .button.loading .txt::after {
	content: "";
	display: inline-block;
	width: 12px; height: 12px;
	margin-left: 8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: eld-spin .7s linear infinite;
}
@keyframes eld-spin { to { transform: rotate(360deg); } }

/* --- Etiquetas (oferta / agotado) --- */
.eld-shop .products-style1__single .eld-badge {
	position: absolute;
	top: 14px; left: 14px;
	z-index: 3;
	padding: 3px 12px;
	border-radius: 20px;
	font-family: var(--thm-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 22px;
	letter-spacing: .02em;
}
.eld-shop .products-style1__single .eld-badge--sale     { background: #97D33D; color: #1F2A16; }
.eld-shop .products-style1__single .eld-badge--outstock { background: #E6E9E2; color: #5A6553; }

/* --- Barra superior: ajustes para WooCommerce --- */
.eld-shop .shop-page-top-info .woocommerce-result-count,
.eld-shop .shop-page-top-info .woocommerce-ordering { margin: 0; }
.eld-shop .shop-page-top-info select {
	height: 44px;
	padding: 0 34px 0 14px;
	border: 1px solid var(--thm-border-color);
	border-radius: 4px;
	background-color: #fff;
	color: #1F2A16;
	font-family: var(--thm-font);
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236E7A66' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 11px;
}

/* --- Paginación WooCommerce con el look de MedShop --- */
.eld-shop .woocommerce-pagination ul.page-numbers {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding-top: 20px;
	border: 0;
	list-style: none;
}
.eld-shop .woocommerce-pagination ul.page-numbers li { border: 0; margin: 0; }
.eld-shop .woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 50px;
	border: 1px solid #D9D9D9;
	border-radius: 3px;
	background: #fff;
	color: #6E7A66;
	font-family: var(--thm-font-2);
	font-size: 18px;
	font-weight: 600;
	transition: all .35s ease;
}
.eld-shop .woocommerce-pagination .page-numbers:hover,
.eld-shop .woocommerce-pagination .page-numbers.current {
	background: #527D19;
	border-color: #527D19;
	color: #fff;
}

/* --- Mensajes de WooCommerce con la paleta de la marca --- */
.woocommerce-message,
.woocommerce-info {
	border-top-color: #527D19;
	background: #F4F7F0;
	color: #1F2A16;
}
.woocommerce-message::before,
.woocommerce-info::before { color: #527D19; }
.woocommerce-error { border-top-color: #B3261E; }

/* --- Accesibilidad: foco visible en toda la tienda --- */
.eld-shop a:focus-visible,
.eld-shop button:focus-visible,
.eld-shop select:focus-visible,
.eld-shop input:focus-visible {
	outline: 3px solid #456A15;
	outline-offset: 2px;
}

/* --- Respeta "reducir movimiento" del sistema --- */
@media (prefers-reduced-motion: reduce) {
	.eld-shop *,
	.eld-shop *::before,
	.eld-shop *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* =============================================================
   Panel de filtros
   El botón FILTRAR sustituye al <h6> decorativo de la plantilla,
   para que sea operable con teclado y anuncie su estado.
   ============================================================= */

.eld-shop .shop-page-top-info .filter-box .eld-filter-toggle {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--thm-black);
	font-family: var(--thm-font-2);
	font-size: 20px;
	font-weight: 600;
	line-height: 30px;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .25s ease;
}
.eld-shop .shop-page-top-info .filter-box .eld-filter-toggle:hover { color: #527D19; }
.eld-shop .shop-page-top-info .filter-box .eld-filter-toggle .icon-filter {
	position: relative;
	top: -2px;
	display: inline-block;
	padding-right: 8px;
}

.eld-shop .eld-filter-panel {
	display: grid;
	grid-template-rows: 0fr;
	margin-bottom: 0;
	overflow: hidden;
	transition: grid-template-rows .3s ease, margin-bottom .3s ease;
}
.eld-shop .eld-filter-panel.is-open {
	grid-template-rows: 1fr;
	margin-bottom: 40px;
}
.eld-shop .eld-filter-panel__inner { min-height: 0; }
.eld-shop .eld-filter-panel.is-open .eld-filter-panel__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	padding: 28px 30px;
	border: 1px solid var(--thm-border-color);
	border-radius: 8px;
	background: var(--thm-gray-bg);
}
@media (max-width: 767px) {
	.eld-shop .eld-filter-panel.is-open .eld-filter-panel__inner {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

.eld-shop .eld-filter-widget .widget-title {
	margin: 0 0 12px;
	color: #1F2A16;
	font-family: var(--thm-font);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}
.eld-shop .eld-filter-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.eld-shop .eld-filter-widget li { margin-bottom: 7px; }
.eld-shop .eld-filter-widget li a {
	color: #4a5344;
	font-size: 14px;
	text-decoration: none;
	transition: color .2s ease;
}
.eld-shop .eld-filter-widget li a:hover,
.eld-shop .eld-filter-widget li.current-cat > a { color: #456A15; font-weight: 600; }

/* Deslizador de precio de WooCommerce con el verde de la marca */
.eld-shop .price_slider_wrapper .ui-slider .ui-slider-range { background: #527D19; }
.eld-shop .price_slider_wrapper .ui-slider .ui-slider-handle { background: #456A15; }
.eld-shop .price_slider_amount .button {
	padding: 9px 20px;
	border: 0;
	border-radius: 3px;
	background: #527D19;
	color: #fff;
	font-size: 13px;
	text-transform: uppercase;
}

/* Sin el panel abierto, la barra no debe dejar hueco */
.eld-shop .shop-page-top-info { padding-bottom: 34px; }

/* La barra en móvil se apila en lugar de apretarse */
@media (max-width: 767px) {
	.eld-shop .shop-page-top-info {
		gap: 14px;
		justify-content: flex-start;
	}
	.eld-shop .shop-page-top-info .showing-results p,
	.eld-shop .shop-page-top-info .right-box .text p,
	.eld-shop .shop-page-top-info .filter-box .eld-filter-toggle { font-size: 16px; }
	.eld-shop .shop-page-top-info .right-box .text { width: auto; padding-right: 10px; }
}

/* =============================================================
   Modo «precios pendientes»
   Mientras el catálogo lleva el precio marcador de USD 1,00 la
   tienda funciona como catálogo consultable: se navega y se busca,
   pero no se compra. Se apaga en Personalizar → El Doctor · Tienda.
   ============================================================= */

.eld-shop .eld-price-consultar,
.eld-price-consultar {
	display: inline-block;
	color: #527D19;
	font-family: var(--thm-font, 'Poppins', sans-serif);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .01em;
}

.eld-shop .products-style1__single-content .eld-btn-consultar { white-space: nowrap; }

/* Bloque de consulta en la ficha de producto */
.eld-consulta-box {
	margin: 24px 0;
	padding: 22px 24px;
	border: 1px solid #e4e9de;
	border-left: 4px solid #97D33D;
	border-radius: 8px;
	background: #F4F7F0;
}
.eld-consulta-box__titulo {
	margin: 0 0 6px;
	color: #1F2A16;
	font-size: 19px;
	font-weight: 700;
}
.eld-consulta-box__texto {
	margin: 0 0 18px;
	color: #4a5344;
	font-size: 14px;
	line-height: 1.7;
}
.eld-consulta-box .eld-hero__cta { padding: 12px 26px; font-size: 14px; }
.eld-consulta-box .eld-hero__cta i { margin-right: 8px; }
.eld-consulta-box .eld-hero__cta--ghost { margin-left: 8px; padding: 10px 22px; }

@media (max-width: 575px) {
	.eld-consulta-box .eld-hero__cta { display: block; text-align: center; }
	.eld-consulta-box .eld-hero__cta--ghost { margin: 10px 0 0; }
}
