.single-product .main-page-wrapper {
    padding-top: 10px;
}

.single-product .wd-breadcrumbs {
    margin-block: 24px;
    font-size: 12px;
    line-height: 1;
}

.g-product--gallery>.vc_column-inner {
    padding: 20px;
}

.g-product .thumbs-position-left .wd-gallery-thumb .wd-carousel-wrap {
    gap: 16px;
}

.g-product .thumbs-position-left .wd-gallery-thumb .wd-carousel-item img {
    height: auto;
    margin-bottom: 0;
    border: 1px solid #eee;
    padding: 5px;
}

.g-product--sku>.wpb_wrapper {
    line-height: 1;
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.wpb_text_column.g-product--sku {
    margin-block: 20px;
    line-height: 1;
}

.g-product--sku .producto-sku {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #eee;
    color: var(--wd-text-color);
}

body .wd-single-title .product_title {
    font-size: 22px;
    line-height: 32px;
}

.g-product .wd-single-title {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.g-product .price ins {
    margin-left: 7px !important;
}

.g-product .shop_attributes tr {
    margin: 0;
    padding: 0;
    line-height: 40px;
    border-style: dashed;
    border-color: #eee;
    font-size: 13px;
}

.g-product .shop_attributes tr:last-child {
    border: 0;
}

.g-product .shop_attributes tbody {
    margin-bottom: 0;
    background-color: #f8f8fa;
    padding: 4px 16px;
    border-radius: 6px;
}

.g-product--add>.vc_column-inner {
    padding: 0;
}

.g-product--add>.vc_column-inner>.wpb_wrapper {
    margin: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.vc_row.g-product.vc_row-flex {
    display: grid;
    grid-template-columns: 75% 25%;
    margin: 0;
    background-color: #fff;
    box-shadow: 0px 1px 3px rgb(0 0 0 / 3%);
    border-radius: 8px;
}

.g-product--gallery>.vc_column-inner>.wpb_wrapper>.vc_row.vc_row-flex {
    display: grid;
    grid-template-columns: 60% 40%;
}

.g-product .wpb_column {
    width: 100%;
}

.wpb_text_column.g-product--add-shipping-text {
    line-height: 1;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 500;
}

.g-product--add-shipping-text strong {
    color: var(--wd-primary-color);
}

.g-product--add-trust-text ul {
    list-style: none;
    padding: 0;
}

.g-product--add-trust-text ul li {
    position: relative;
    padding-left: 40px;
    font-size: 12px;
    line-height: 19px;
}

.g-product--add-trust-text img {
    position: absolute;
    width: 25px;
    aspect-ratio: 1;
    object-fit: contain;
    left: 0;
}

.g-product--add-trust-text ul li:nth-child(2) img {
    width: 24px;
}

.g-product--add-trust-text strong {
    color: var(--wd-primary-color);
}

.wpb_text_column.g-product--add-trust-text {
    margin-bottom: 0;
}

.wpb_text_column.g-product--add-shipping-text--2 {
    font-size: 13px;
    line-height: 17px;
    color: #999;
    margin: 0;
}

.g-product .cart :where(.single_add_to_cart_button, .wd-buy-now-btn, .quantity) {
    width: 100%;
    align-items: center;
}

.g-product .wd-btn-design-full form.cart :where(.single_add_to_cart_button, .wd-buy-now-btn) {
    text-transform: none;
    font-weight: 500;
    border-radius: 4px;
}

.g-product .wd-buy-now-btn {
    background-color: rgb(4 190 79 / 15%);
    color: rgb(4 190 79);
}

.g-product .wd-single-add-cart {
    margin-bottom: 20px;
}

.g-product .wd-single-add-cart form.cart .quantity::before {
    content: 'Cantidad';
    font-size: 13px;
    flex: 1;
}

.g-product .wd-single-add-cart div.quantity input[type="button"],
.g-product .wd-single-add-cart div.quantity input[type="number"] {
    min-width: auto;
    height: auto;
    padding: 0;
    width: 36px;
    height: 32px;
    font-weight: 500;
    border: 0;
}

.g-product .wd-single-add-cart div.quantity input[type="button"] {
    background-color: #f8f8fa;
    color: #5a5a5a;
    font-weight: 400;
    border-radius: 4px;
    font-size: 16px;
}

.g-product .wd-single-add-cart div.quantity {
    margin-bottom: 10px;
}

.g-product-cta--payments ul {
    list-style: none;
    padding: 0;
}

.g-product-cta--payments img {
    height: 24px;
}

.g-product-cta--payments ul li {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
    font-size: 12px;
}

.g-product-cta--payments>.wpb_wrapper {
    border: 1px solid #eee;
    padding: 20px;
    margin-inline: 5px;
    border-radius: 6px;
}

.g-product-cta--payments p {
    line-height: 1;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 500;
}

.g-product-cta--payments strong {
    font-weight: 500;
}

.g-product--cta>.vc_column-inner {
    padding-bottom: 20px;
}

.wpb_text_column.g-product-cta--payments {
    margin-bottom: 0;
}

.g-product .wd-nav-arrows {
    display: none;
}

.g-product-info .wd-single-tabs {
    background-color: #fff;
    box-shadow: 0px 1px 3px rgb(0 0 0 / 3%);
    border-radius: 8px;
    padding: 32px;
    margin-top: 40px;
    margin-bottom: 0;
}

.single-product .atts-002 {
    margin-bottom: 0;
}

.wd-single-gallery,
.wd-single-attrs {
    margin-bottom: 0;
}

.woocommerce-Tabs-panel>h2 {
    display: none;
}

body .wd-single-tabs .wd-nav-tabs-wrapper {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.wd-single-tabs .wd-nav[class*="wd-style-underline"] .nav-link-text:after {
    top: 170%;
}

.wd-nav[class*="wd-style-underline"] .nav-link-text {
    text-transform: none;
}

.wd-single-tabs .wd-nav-tabs>li:not(:last-child) {
    margin-inline-end: 48px;
}

.wd-single-tabs .shop_attributes tr {
    padding: 0 16px;
    margin: 0;
    border: 0;
    line-height: 44px;
    display: grid;
    grid-template-columns: 30% 1fr;
    justify-content: flex-start;
}

.wd-single-tabs .shop_attributes tbody {
    margin-bottom: 0;
}

.wd-single-tabs .shop_attributes tr:nth-child(2n+1) {
    background-color: #f8f8fa;
}

.wd-single-tabs .shop_attributes td {
    text-align: left;
}

.g-product--gallery>.vc_column-inner>.wpb_wrapper {
    position: sticky;
    top: 160px;
}

.g-product-photos .wpb_content_element {
    margin-bottom: 0;
}

.g-product .product-labels.labels-rectangular {
    top: 0;
}

body .g-product .product-label {
    font-size: 12px;
}

.g-product .wd-single-price .price {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.wd-single-reviews {
    background-color: #fff;
    box-shadow: 0px 1px 3px rgb(0 0 0 / 3%);
    border-radius: 8px;
    padding: 32px;
    margin-top: 40px;
    margin-bottom: 0;
}

body .star-rating:before,
body .star-rating,
body .stars:hover a:before,
body .stars.selected a:before,
body .stars.selected:hover a:before {
    color: #ffcc00;
}

.g-product-relateds .wd-products-element {
    margin-top: 40px;
}

.wd-single-short-desc {
    margin-top: 20px;
    margin-bottom: 0;
    background-color: #f8f8fa;
    padding: 16px;
    border-radius: 6px;
    line-height: 24px;
    font-size: 13px;
}

.condicion-producto-container {
    display: flex;
    gap: 24px;
    border-top: 1px solid #eee;
    padding-top: 32px;
}

.icono-container {
    background-color: rgb(27 198 81 / 10%);
    min-width: 64px;
    height: 64px;
    position: relative;
    border-radius: 12px;
    filter: grayscale(1) brightness(0.6);
}

.icono-container img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.7);
    height: 100%;
    width: 100%;
}

.condicion-producto-container .title {
    line-height: 1;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.condicion-producto-container p {
    font-size: 13px;
}

.wd-sticky-btn .price {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.wd-sticky-btn .wd-buy-now-btn {
    display: none;
}

.wd-sticky-btn button.single_add_to_cart_button {
    text-transform: none;
    font-weight: 500;
    border-radius: 4px;
}

.wd-sticky-btn .stock {
    display: none;
}

.stock-indicator-container {
    margin: 15px 0;
    font-size: 13px;
}

.stock-indicator-bar {
    height: 4px;
    background: #e0e0e0;
    margin-top: 9px;
    border-radius: 10px;
    overflow: hidden;
}

.stock-indicator-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.stock-message {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.stock-dot::before {
    content: "";
    height: 7px;
    width: 7px;
    display: inline-block;
    border-radius: 10px;
    position: absolute;
    margin-inline-end: 18px;
    transform: scale(1);
    animation: expansion 1.6s infinite;
    font-family: initial;
    font-size: 0;
    inset: 0;
}

/* Estados de stock con sus respectivas animaciones */
.high-stock .stock-dot,
.high-stock .stock-indicator-fill {
    background-color: #1bc651;
}

.high-stock .stock-dot::before {
    animation: expansion-high 1.6s infinite;
}

.medium-stock .stock-dot,
.medium-stock .stock-indicator-fill {
    background-color: #FFA000;
}

.medium-stock .stock-dot::before {
    animation: expansion-medium 1.6s infinite;
}

.low-stock .stock-dot,
.low-stock .stock-indicator-fill {
    background-color: #D32F2F;
}

.low-stock .stock-dot::before {
    animation: expansion-low 1.6s infinite;
}

@keyframes expansion-high {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(27, 198, 81, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(46, 125, 50, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

@keyframes expansion-medium {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 160, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 160, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 160, 0, 0);
    }
}

@keyframes expansion-low {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(211, 47, 47, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.wpb_text_column.g-contador-envio{
    margin-bottom: 0;
}

.opciones-envio {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.opciones-envio .opcion-envio {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 16px;
    gap: 12px;
    flex: 1;
    text-align: center;
    background-color: #fff;
}

.opcion-envio__contenido {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opcion-envio__info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: column;
}

.opcion-envio .contador__titulo {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
}

.opcion-envio__contador {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: -6px;
    margin-bottom: 28px;
    font-size: 13px;
    line-height: 1;
    flex-wrap: wrap;
}

.opcion-envio__titulo {
    font-size: 14px;
    font-weight: 575;
}

.opcion-envio__descripcion {
    font-size: 13px;
}

.contador__tiempo {
    display: inline-block;
    padding-inline: 6px;
    line-height: 23px;
    background-color: #d53c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
}

.opcion-envio__icono {
    font-size: 0;
    width: 32px;
    height: 32px;
    object-fit: contain;
    background-position: center;
    background-size: contain;
}

.opcion-envio--express .opcion-envio__icono {
    background-image: url(/wp-content/uploads/2024/10/Frame-427324502.svg);
}

.opcion-envio--regular .opcion-envio__icono {
    background-image: url(/wp-content/uploads/2024/10/fast-delivery-1-2.svg);
}

.opcion-envio--retiro .opcion-envio__icono {
    background-image: url(/wp-content/uploads/2024/10/Frame-427324504.svg);
}

.opcion-envio--express.envio-activo~*,
.opcion-envio.envio-inactivo {
    order: 1;
}

.wpb_text_column.g-opciones-envio {
    margin: 0;
    background-color: #fff;
    box-shadow: 0px 1px 3px rgb(0 0 0 / 3%);
    border-radius: 8px;
    margin-top: 40px;
}

@media (max-width: 1024px) {

    .opciones-envio .opcion-envio{
        padding-inline: 40px;
        line-height: 19px; 
    }

    .opciones-envio{
        flex-direction: column;
    }

    .vc_row.g-product.vc_row-flex,
    .g-product--gallery>.vc_column-inner>.wpb_wrapper>.vc_row.vc_row-flex {
        display: flex;
    }

    body .wd-single-title .product_title {
        font-size: 18px;
        line-height: 27px;
    }

    .g-product .thumbs-position-left .wd-gallery-thumb .wd-carousel-wrap {
        gap: 0;
    }

    .g-product--add>.vc_column-inner>.wpb_wrapper {
        margin-top: 0;
    }

    .g-product-info .wd-single-tabs {
        padding: 20px;
    }

    .wd-single-tabs .shop_attributes tr {
        padding: 16px;
        line-height: 19px;
    }

    .wd-single-tabs .wd-accordion.wd-style-default:before {
        display: none;
    }

    .single-product .wd-breadcrumbs {
        margin-block: 16px;
    }

    .single-product .main-page-wrapper {
        padding-top: 16px;
    }

    .g-product--add>.vc_column-inner>.wpb_wrapper {
        margin: 0;
        border: 0;
    }

    .g-product-cta--payments>.wpb_wrapper {
        border: 0;
        padding: 0;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .g-product-info .wd-single-tabs {
        margin-top: 20px;
    }

    .single-product .atts-002 {
        margin-top: 20px;
    }

    .g-product-photos {
        display: none;
    }

}