/* Página del producto (html/producto.php) */
.fx-migas {
    padding-top: 18px;
}
.fx-migas ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #8a8a8a;
}
.fx-migas li {
    display: flex;
    align-items: center;
    min-width: 0;
}
.fx-migas li + li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin: 0 10px;
    border-top: 1.5px solid #b5b5b5;
    border-right: 1.5px solid #b5b5b5;
    transform: rotate(45deg);
}
.fx-migas a {
    color: #6b6b6b;
}
.fx-migas a:hover {
    color: var(--theme-color);
}
.fx-migas li[aria-current] {
    max-width: 260px;
    overflow: hidden;
    color: #222;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-section .fx-info .fx-categoria {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--theme-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.product-section .fx-info .name {
    margin-bottom: 8px;
}
.fx-datos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin-bottom: 14px;
    color: #777;
    font-size: 13px;
}
.fx-datos strong {
    color: #333;
    font-weight: 600;
}
.fx-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e9f7ef;
    color: #1e8a4c;
    font-weight: 600;
}
.fx-estado i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.fx-estado.agotado {
    background: #f2f2f2;
    color: #888;
}

.fx-resumen {
    margin: 16px 0 4px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.fx-resumen p,
.fx-resumen .fx-texto {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
.fx-resumen .fx-tamano {
    margin-top: 8px;
}
.fx-ver-mas {
    display: inline-block;
    margin-top: 6px;
    color: var(--theme-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 6px;
    padding: 0;
    list-style: none;
}
.fx-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    background: #fafafa;
    color: #444;
    font-size: 13px;
}
.fx-chips svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--theme-color);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fx-var-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fx-var-fotos li {
    position: relative;
    margin: 0;
    padding: 0;
}
.fx-var-fotos input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.fx-var-fotos label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 68px;
    margin: 0;
    cursor: pointer;
}
.fx-var-foto {
    display: block;
    width: 68px;
    height: 88px;
    overflow: hidden;
    border: 1.5px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.fx-var-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.fx-var-nombre {
    max-width: 100%;
    overflow: hidden;
    color: #666;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fx-var-fotos label:hover .fx-var-foto {
    border-color: #bdbdbd;
}
.fx-var-fotos input:checked + label .fx-var-foto {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb, 13, 164, 135), .18);
}
.fx-var-fotos input:checked + label .fx-var-nombre {
    color: #222;
    font-weight: 600;
}
.fx-var-fotos input:focus-visible + label .fx-var-foto {
    outline: 2px solid var(--theme-color);
    outline-offset: 2px;
}

.product-section .fx-info .fx-comprar {
    border: 0;
    background-color: var(--theme-color);
    color: #fff;
    font-weight: 600;
    transition: filter .2s ease;
}
.product-section .fx-info .fx-comprar:hover {
    filter: brightness(.92);
    color: #fff;
}

.fx-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;
    border: 1.5px solid #25d366;
    border-radius: 6px;
    color: #128c4a;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}
.fx-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.fx-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.fx-confianza {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0 0;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    list-style: none;
}
.fx-confianza li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    color: #444;
    font-size: 13px;
    line-height: 1.35;
}
.fx-confianza li + li {
    border-left: 1px solid #eee;
}
.fx-confianza svg {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--theme-color);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-main .fx-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #000;
}
.product-main .fx-video iframe,
.product-main .fx-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}
.fx-miniatura-video {
    position: relative;
}
.fx-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
}
.fx-play svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.fx-pestanas {
    margin-top: 40px;
}
.fx-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-bottom: 1px solid #e6e6e6;
    scrollbar-width: none;
}
.fx-tabs::-webkit-scrollbar {
    display: none;
}
.fx-tabs button {
    flex: 0 0 auto;
    margin-bottom: -1px;
    padding: 12px 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #777;
    font-size: 15px;
    font-weight: 600;
}
.fx-tabs button[aria-selected="true"] {
    border-bottom-color: var(--theme-color);
    color: #222;
}
.fx-panel {
    padding: 22px 2px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.75;
}
.fx-panel .fx-texto > :last-child {
    margin-bottom: 0;
}
.fx-texto p {
    margin: 0 0 12px;
}
.fx-texto ul,
.fx-texto ol {
    margin: 0 0 12px;
    padding-left: 22px;
}
.fx-texto ul {
    list-style: disc;
}
.fx-texto ol {
    list-style: decimal;
}
.fx-texto li {
    display: list-item;
    margin-bottom: 4px;
}
.fx-panel .fx-gratis {
    margin: 0 0 14px;
}
.fx-tabla {
    width: 100%;
    max-width: 720px;
    border-collapse: collapse;
}
.fx-tabla th,
.fx-tabla td {
    padding: 11px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    text-align: left;
}
.fx-tabla th {
    width: 38%;
    color: #333;
    font-weight: 600;
}
.fx-tabla th small {
    display: block;
    color: #888;
    font-weight: 400;
}
.fx-tabla tr:nth-child(odd) {
    background: #fafafa;
}

@media (max-width: 767px) {
    .fx-migas li[aria-current] {
        max-width: 160px;
    }
    .fx-datos,
    .fx-chips,
    .fx-var-fotos {
        justify-content: center;
    }
    .fx-confianza {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .fx-confianza li + li {
        border-top: 1px solid #eee;
        border-left: 0;
    }
    .fx-pestanas {
        margin-top: 28px;
    }
    .fx-tabs button {
        padding: 10px 14px;
        font-size: 14px;
    }
    .fx-panel {
        font-size: 14px;
    }
}
