/* Carga la fuente de iconos de SmartAdmin utilizada por LightGallery. */
@font-face {
    font-family: 'Font Awesome 5 Pro';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../../adminweb/webfonts/fa-solid-900.woff2') format('woff2');
}

/* Fuerza a LightGallery a utilizar la variante sólida de Font Awesome para sus controles. */
.lg-icon {
    font-family: 'Font Awesome 5 Pro' !important;
    font-weight: 900 !important;
}
.product-page {
    padding-top: 28px;
    padding-bottom: 60px;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #777;
}

.product-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #93ab20;
}

.product-breadcrumb strong {
    color: #111;
    font-weight: 700;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 42px;
    align-items: start;
}

.product-gallery {
    min-width: 0;
}

/* Contenedor exterior que permite que las flechas sobresalgan del área de imagen. */
.product-main-image-wrapper {
    position: relative;
}

/* Contenedor fijo de la imagen principal. */
.product-main-image {
    width: 100%;
    height: 520px;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
}

/* Muestra un indicador discreto de que la imagen principal puede ampliarse. */
.product-main-zoom-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
    z-index: 3;
}

/* Ajusta el video principal de YouTube al mismo espacio utilizado por las imágenes del producto. */
.product-main-video {
    width: 100%;
    height: 100%;
}

/* Hace que el reproductor de YouTube ocupe completamente el contenedor principal de la galería. */
.product-main-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Ajusta el iframe del video al tamaño de las miniaturas del producto. */
.product-video-thumb iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* Flechas laterales para navegar entre las imágenes del producto. */
.product-main-arrow {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 52px;
    margin-top: -26px;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 2;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.product-main-arrow:hover {
    background: rgba(147, 171, 32, 0.92);
}

/* Posiciona la flecha anterior con la mitad dentro y la mitad fuera de la imagen. */
.product-main-prev {
    left: -19px;
}

/* Posiciona la flecha siguiente con la mitad dentro y la mitad fuera de la imagen. */
.product-main-next {
    right: -19px;
}

.product-no-image {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #999;
    font-size: 15px;
}

.product-no-image i {
    font-size: 50px;
}

/* Coloca las pestañas de imágenes y video debajo del carrusel de miniaturas. */
.product-media-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Estilo base de las pestañas de imágenes y video. */
.product-media-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

/* Resalta la pestaña seleccionada. */
.product-media-tab.active {
    border-color: #93ab20;
    background: #f8faef;
    color: #93ab20;
}

/* Resalta visualmente las pestañas al pasar el cursor. */
.product-media-tab:hover {
    border-color: #93ab20;
    color: #93ab20;
}

.product-thumbnails-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.product-thumbnails::-webkit-scrollbar {
    display: none;
}

.product-thumbnails-arrow {
    width: 34px;
    height: 72px;
    flex: 0 0 34px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fff;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.product-thumbnails-arrow:hover {
    border-color: #93ab20;
    color: #93ab20;
    background: #fafcf3;
}

.product-thumbnails-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.product-thumbnail {
    width: 90px;
    height: 72px;
    flex: 0 0 90px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    opacity: 0.48;
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.product-thumbnail:hover {
    opacity: 0.8;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumbnail.active {
    border-color: #93ab20;
    opacity: 1;
    transform: translateY(-2px);
}

/* Permite colocar el icono de reproducción sobre la miniatura del video. */
.product-video-thumb {
    position: relative;
}

/* Coloca un botón visual de reproducción sobre la miniatura del video. */
.product-video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: none;
}

.product-information {
    min-width: 0;
}

.product-brand {
    margin-bottom: 8px;
    color: #93ab20;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-information h1 {
    margin: 0 0 20px;
    font-size: 34px;
    line-height: 1.15;
    color: #111;
}

/* Resalta el código, SKU o folio principal del producto antes del precio. */
.product-code {
    margin-bottom: 10px;
    font-size: 16px;
    color: #666666;
}

/* Da mayor presencia visual al valor del código, SKU o folio. */
.product-code strong {
    color: #222222;
    font-size: 17px;
    font-weight: 700;
}

.product-price-box {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8e8e8;
}

.product-price {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    color: #111;
}

/* Identifica visualmente cuando el producto tiene un precio de oferta. */
.product-price-sale-label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #93ab20;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Mantiene alineados el precio de oferta y el precio original. */
.product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

/* Muestra el precio original con menor jerarquía y tachado cuando existe una oferta. */
.product-price-original {
    font-size: 17px;
    font-weight: 500;
    color: #999999;
    text-decoration: line-through;
}

.product-price-note {
    margin-top: 6px;
    font-size: 14px;
    color: #777;
}

.product-basic-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.product-data-item {
    padding: 13px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
}

.product-data-item span {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    color: #888;
}

.product-data-item strong {
    display: block;
    font-size: 15px;
    color: #222;
    overflow-wrap: anywhere;
}

.product-description {
    margin-top: 8px;
}

.product-description h2,
.product-characteristics h2,
.product-video h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.25;
    color: #111;
}

.product-description p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.product-actions {
    margin-top: 28px;
}

.product-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    background: #93ab20;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Da mayor presencia al botón que abre la ficha imprimible del producto. */
.product-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    margin-left: 10px;
    padding: 0 20px;
    border: 1px solid #222222;
    border-radius: 8px;
    background: #222222;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

/* Resalta el botón de impresión con el color principal del sitio al pasar el cursor. */
.product-print:hover {
    transform: translateY(-2px);
    background: #93ab20;
    border-color: #93ab20;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.product-characteristics,
.product-video {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.product-characteristics-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.product-characteristics-content table td {
    padding: 6px 12px;
}

.product-characteristics-content ul,
.product-characteristics-content ol {
    padding-left: 22px;
}

.product-video a {
    color: #93ab20;
    font-weight: 700;
    text-decoration: none;
}

.product-video a:hover {
    text-decoration: underline;
}

.product-not-found {
    max-width: 620px;
    margin: 60px auto;
    text-align: center;
}

.product-not-found i {
    display: block;
    margin-bottom: 18px;
    font-size: 48px;
    color: #aaa;
}

.product-not-found h1 {
    margin: 0 0 10px;
    color: #111;
}

.product-not-found p {
    margin: 0 0 22px;
    color: #666;
}

.product-not-found a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 7px;
    background: #93ab20;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 980px) {

    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
	
    .product-main-image {
        height: 440px;
    }

    .product-information h1 {
        font-size: 30px;
    }

}

@media (max-width: 640px) {

    .product-page {
        padding-top: 18px;
        padding-bottom: 40px;
    }

    .product-breadcrumb {
        margin-bottom: 20px;
        font-size: 13px;
    }
	
    .product-main-image {
        height: 320px;
        border-radius: 10px;
    }

    .product-no-image {
        min-height: 280px;
    }

    .product-information h1 {
        font-size: 26px;
    }

    .product-price {
        font-size: 25px;
    }

    .product-basic-data {
        grid-template-columns: 1fr;
    }
	
    .product-whatsapp,
    .product-print {
        width: 100%;
        box-sizing: border-box;
    }

    .product-print {
        margin-top: 10px;
        margin-left: 0;
    }
	
    .product-characteristics-content table tr {
        display: grid;
        grid-template-columns: 32% 68%;
    }

    .product-characteristics-content table td {
        width: auto !important;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

}

/* =========================================================
   PRODUCTOS RELACIONADOS
   ========================================================= */

.related-products {
    margin: 40px 0 0;
    padding: 42px 24px 50px;
    background: #f5f5f5;
    box-sizing: border-box;
}

.related-products-header {
    margin-bottom: 28px;
    text-align: center;
}

.related-products-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #20252b;
}

.related-products-header span {
    display: block;
    width: 58px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 4px;
    background: #8aa800;
}

/* Tarjetas del carrusel de productos relacionados. */
/* Mantiene las flechas a los lados de la ventana visible del carrusel. */
.related-products-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

/* Oculta las tarjetas que quedan fuera del área visible del carrusel. */
.related-products-viewport {
    width: 100%;
    overflow: hidden;
}

/* Muestra las flechas centradas verticalmente a cada lado del carrusel. */
.related-products-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    width: 42px;
    height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dfe2e4;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-size: 25px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.related-products-prev {
    left: -50px;
}

.related-products-next {
    right: -50px;
}

.related-products-arrow:hover {
    border-color: #789600;
    background: #789600;
    color: #ffffff;
}

/* Reserva el espacio donde posteriormente se mostrarán los indicadores. */
/* Mantiene centrados los indicadores de posición debajo del carrusel. */
.related-products-dots {
    display: flex;
    min-height: 12px;
    margin-top: 26px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Muestra cada posición disponible mediante un indicador circular. */
.related-products-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cfd3d6;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-products-dot:hover {
    background: #9da4a9;
}

/* Destaca la posición actualmente visible con el verde del sitio. */
.related-products-dot.active {
    background: #789600;
    transform: scale(1.2);
}

@media (max-width: 1250px) {
    .related-products-prev {
        left: 8px;
    }

    .related-products-next {
        right: 8px;
    }
}
.related-products-track {
    display: flex;
    gap: 18px;
    align-items: stretch;
}

/* Mantiene cinco productos visibles en escritorio. */
.related-product-card {
    flex: 0 0 calc((100% - 72px) / 5);
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e4e6e8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Resalta ligeramente la tarjeta al pasar el cursor. */
.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.related-product-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: #252525;
    text-decoration: none;
}

/* Mantiene todas las imágenes dentro de un área uniforme. */
.related-product-image {
    display: flex;
    width: 100%;
    height: 190px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #eceeef;
}

.related-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.04);
}

/* Sustituye visualmente la fotografía cuando el producto no tiene imagen. */
.related-product-no-image {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a5a9ad;
    font-size: 32px;
    background: #f7f7f7;
}

.related-product-info {
    display: flex;
    padding: 14px 15px 16px;
    flex-direction: column;
}

.related-product-brand {
    margin-bottom: 5px;
    color: #789600;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.related-product-info h3 {
    margin: 0 0 12px;
    min-height: 42px;
    color: #20252b;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

/* Presenta modelo y año de forma compacta debajo del nombre del producto. */
/* Presenta modelo y año en líneas independientes para evitar cortes en tarjetas angostas. */
.related-product-details {
    min-height: 38px;
    margin-bottom: 10px;
    color: #60656a;
    font-size: 13px;
    line-height: 1.45;
}

.related-product-details strong {
    color: #252525;
    font-weight: 600;
}

/* Mantiene agrupados código y precio en la parte inferior de la tarjeta. */
.related-product-bottom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eceeef;
}

.related-product-code {
    color: #60656a;
    font-size: 13px;
}

.related-product-code strong {
    color: #252525;
}

/* Destaca el precio del producto y muestra tachado el precio anterior cuando existe oferta. */
.related-product-price {
    display: flex;
    margin-top: 12px;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 8px;
}

.related-product-price strong {
    color: #789600;
    font-size: 16px;
    font-weight: 700;
}

.related-product-price span {
    color: #92979b;
    font-size: 12px;
    text-decoration: line-through;
}

/* Reduce progresivamente la cantidad de tarjetas visibles según el ancho. */
@media (max-width: 1100px) {
    .related-product-card {
        flex-basis: calc((100% - 54px) / 4);
    }
}

@media (max-width: 850px) {
    .related-product-card {
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (max-width: 650px) {
    .related-product-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 430px) {
    .related-product-card {
        flex-basis: 100%;
    }
}

/* Estado comercial del producto */
.product-status {
    display: inline-block;
    margin-top: 12px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-status-upcoming {
    background: #e59a16;
}

.product-status-sold {
    background: #c62828;
}