/* Ficha técnica — una sola grilla, ancho completo */

.ev-tech-sheet {
    width: 100%;
    margin: 0;
    padding: 4px 0 28px;
}

.ev-tech-sheet__header {
    text-align: center;
    margin-bottom: 22px;
}

.ev-tech-sheet__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
    font-family: var(--font-display, "Source Serif 4", Georgia, serif);
    font-weight: 600;
    font-size: var(--text-2xl, 28px);
    line-height: 1.2;
    color: var(--color-text, #333);
    letter-spacing: 0.02em;
}

.ev-tech-sheet__title::before,
.ev-tech-sheet__title::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-brand, #6f1c48);
    flex-shrink: 0;
}

.ev-tech-sheet__intro.product-description,
#product .ev-tech-sheet__intro.product-description {
    text-align: left;
    max-width: none;
    margin: 0 0 28px;
    color: var(--color-muted, #666);
    font-size: var(--text-base, 16px);
    line-height: 1.65;
}

.ev-tech-sheet__intro.product-description p,
#product .ev-tech-sheet__intro.product-description p {
    margin: 0 0 10px;
}

.ev-tech-sheet__intro.product-description p:last-child,
#product .ev-tech-sheet__intro.product-description p:last-child {
    margin-bottom: 0;
}

/* Una sola grilla: 4 columnas en desktop */
.ev-tech-sheet__grid.product-attributes,
.ev-tech-sheet .ev-tech-sheet__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 28px;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: none;
}

.ev-tech-sheet .attribute {
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    border: none;
    float: none;
    width: auto;
}

.ev-tech-sheet .attribute .attr-icon,
.ev-tech-sheet .attribute .attr-icon-svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
    color: #6f1c48 !important;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.9px #6f1c48;
}

.ev-tech-sheet .attribute .attr-icon-svg {
    -webkit-text-fill-color: unset;
    -webkit-text-stroke: 0;
    overflow: visible;
    flex-shrink: 0;
}

.ev-tech-sheet .attribute .attr-body {
    flex: 1;
    min-width: 0;
}

.ev-tech-sheet .attribute .title {
    color: #999;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: auto;
    max-width: 100%;
    margin-bottom: 2px;
    line-height: 1.3;
}

.ev-tech-sheet .attribute .value {
    color: var(--color-text, #333);
    font-size: var(--text-sm, 15px);
    line-height: 1.4;
    font-weight: 400;
    word-break: break-word;
}

.ev-tech-sheet .attribute .value a {
    color: inherit;
    text-decoration: none;
}

.ev-tech-sheet .attribute .value a:hover {
    color: var(--color-brand, #6f1c48);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ev-tech-sheet .attribute .value .flag-icon {
    margin-right: 6px;
    vertical-align: middle;
}

/* Elaboración: texto corrido, sin caja */
.ev-tech-sheet__elaboration {
    margin-top: 32px;
}

.ev-tech-sheet__elaboration-label {
    margin: 0 0 8px;
    color: #999;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ev-tech-sheet__elaboration-text {
    color: var(--color-muted, #666);
    font-size: var(--text-base, 16px);
    line-height: 1.65;
}

.ev-tech-sheet__elaboration-text p {
    margin: 0 0 10px;
}

.ev-tech-sheet__elaboration-text p:last-child {
    margin-bottom: 0;
}

/* Productor */
.ev-tech-sheet__producer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.ev-tech-sheet__producer-logo img,
#producer-small-logo.ev-tech-sheet__producer-logo img {
    margin: 0 auto 10px;
    width: 150px;
    max-width: 100%;
    padding: 8px;
    background: #fff;
}

.ev-tech-sheet__producer-link {
    display: inline-block;
    font-size: var(--text-sm, 15px);
    color: var(--color-brand, #6f1c48);
    text-decoration: none;
}

.ev-tech-sheet__producer-link:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .ev-tech-sheet__grid.product-attributes,
    .ev-tech-sheet .ev-tech-sheet__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 22px;
    }
}

@media (max-width: 767px) {
    .ev-tech-sheet__grid.product-attributes,
    .ev-tech-sheet .ev-tech-sheet__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 16px;
    }
}

@media (max-width: 479px) {
    .ev-tech-sheet__title {
        gap: 12px;
        font-size: var(--text-xl, 24px);
    }

    .ev-tech-sheet__title::before,
    .ev-tech-sheet__title::after {
        width: 28px;
    }

    .ev-tech-sheet__grid.product-attributes,
    .ev-tech-sheet .ev-tech-sheet__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px 12px;
    }
}

/* Fallback: atributos fuera de ficha técnica */
.product-attributes .attribute {
    display: flex;
    align-items: flex-start;
}

.product-attributes .attribute .attr-icon,
.attribute .attr-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    margin-top: 1px;
    color: #6f1c48 !important;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.9px #6f1c48;
}

.product-attributes .attribute .attr-icon-svg,
.attribute .attr-icon-svg {
    -webkit-text-fill-color: unset;
    -webkit-text-stroke: 0;
    overflow: visible;
    flex-shrink: 0;
}

.product-attributes .attribute .attr-body {
    flex: 1;
    min-width: 0;
}

.product-attributes .attribute .title {
    color: #555;
    font-weight: bold;
    font-size: 13px;
    width: auto;
    max-width: 100%;
}

/* Rating estilo ML */
.ev-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}

a.ev-rating:hover,
a.ev-rating:focus {
    text-decoration: none;
    opacity: 0.85;
}

.ev-rating-value {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.ev-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
    /* ★ sits low in the em box; nudge up to align with adjacent text */
    transform: translateY(-1px);
}

.ev-rating-star {
    display: block;
    color: #d8d8d8;
    font-size: 18px;
    line-height: 1;
}

.ev-rating-star.is-filled {
    color: #6f1c48;
}

.ev-rating-count {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.ev-rating--sm .ev-rating-value {
    font-size: 12px;
}

.ev-rating--sm .ev-rating-star {
    font-size: 14px;
}

.ev-rating--sm .ev-rating-count {
    font-size: 11px;
}

#product .product-review .ev-rating {
    display: inline-flex;
    margin-right: 0;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Beat #product .product-review span { display: inline-block } */
#product .product-review .ev-rating span {
    margin-right: 0;
}

#product .product-review .ev-rating-stars {
    display: inline-flex;
}

#product .product-review .ev-rating-star {
    display: block;
}

#product .product-review .product-review-sep {
    display: inline;
    margin: 0 6px;
    padding: 0;
    color: #ccc;
    font-weight: 400;
    vertical-align: baseline;
}

/* Keep rating | Favoritos | Compartir on one line on mobile */
@media screen and (max-width: 767px) {
    #product .product-review {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        white-space: nowrap;
        font-size: 13px;
    }

    #product .product-review .ev-rating-star {
        font-size: 15px;
    }

    #product .product-review .ev-rating-value,
    #product .product-review .favorite-button,
    #product .product-review .ev-share-link-btn {
        font-size: 13px;
    }

    #product .product-review .product-review-sep {
        margin: 0 5px;
    }

    #product .product-review .product-review-actions {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        white-space: nowrap;
    }
}

.product-list .product .ev-rating {
    margin: 4px auto 0;
    justify-content: center;
}

/* Listado de calificaciones: puntaje, estrellas y fecha a la misma escala */
#reviews .review .head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.2;
}

#reviews .review .head .date {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
}

/* Interactive review star picker */
#review_value,
.ev-star-picker-input {
    display: none !important;
}

.ev-star-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 6px 0 12px;
    user-select: none;
    -webkit-user-select: none;
}

.ev-star-picker-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.ev-star-picker-star {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #d4d0d2 !important;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: inline-block;
    overflow: visible;
    font-weight: normal;
    transition: color 0.12s ease;
}

.ev-star-picker-star span {
    display: block;
    line-height: 1;
}

.ev-star-picker-star span:before {
    content: "\2605";
    color: inherit;
}

.ev-star-picker-star:focus {
    outline: none;
}

.ev-star-picker-star:focus-visible {
    outline: 2px solid var(--color-brand, #6f1c48);
    outline-offset: 3px;
    border-radius: 4px;
}

.ev-star-picker-star:hover,
.ev-star-picker-star:focus,
.ev-star-picker-star:active {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit;
}

/* Selección persistente */
.ev-star-picker-star.is-filled {
    color: var(--color-brand, #6f1c48) !important;
}

/* Hover: rellena desde la 1 hasta la estrella bajo el cursor */
.ev-star-picker-stars:hover .ev-star-picker-star {
    color: #d4d0d2 !important;
}

.ev-star-picker-stars:hover .ev-star-picker-star:hover,
.ev-star-picker-stars:hover .ev-star-picker-star:hover ~ .ev-star-picker-star {
    color: var(--color-brand, #6f1c48) !important;
}

.ev-star-picker-caption {
    min-height: 1.35em;
    color: var(--color-brand, #6f1c48);
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Arial, sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.ev-star-picker-caption.is-placeholder {
    color: #888;
    font-weight: 500;
}

@media (max-width: 480px) {
    .ev-star-picker-star {
        font-size: 32px;
    }
}
