/* Montredon — nouvelle maquette fiche produit
 * Tous les styles sont scoped sous .mr-product--new.
 */

.mr-product--new {
    --mr-text:        #1a1a1a;
    --mr-muted:       #6b6b6b;
    --mr-accent:      #b8232f; /* rouge bouton AJOUTER AU PANIER */
    --mr-border:      #e5e5e5;
    --mr-bg-soft:     #fafafa;
    --mr-gap:         2rem;
    --mr-radius:      2px;
    --mr-font-serif:  Georgia, "Times New Roman", serif;
    color: var(--mr-text);
}

.mr-product--new .mr-product__container {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

/* « Vous aimerez aussi » sous la fiche produit */
.mr-product__related-wrap {
    padding: 2rem 0 3rem;
}

.mr-product__related-wrap .related.products > h2,
.mr-product__related-wrap .related-products > h2 {
    text-align: center;
    margin: 0 0 1.5rem;
}

.mr-product--new .mr-product__breadcrumb {
    font-size: .8125rem;
    color: var(--mr-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: left;
}

.mr-product--new .mr-product__breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    text-align: left;
}

.mr-product--new .mr-product__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mr-gap); 
}

@media (min-width: 768px) {
    .mr-product--new .mr-product__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); 
        gap: 3rem;
        align-items: start;
    }
}

.mr-product--new .mr-product__media-wrap {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.mr-product--new .mr-product__media {
    margin: 0;
    position: relative;
}

/* Labels attributs (ex : AB Certifié, MAGNUM) en superposition de l'image, haut-gauche */
.mr-product--new .mr-product__labels {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    z-index: 2;
    pointer-events: none;
}

/* Force le label à rester dans le flux du wrapper (annule l'absolu de Woodmart) */
.mr-product--new .mr-product__labels .attribute-label,
.mr-product--new .mr-product__labels .product-label {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-flex;
    pointer-events: auto;
    margin: 0 !important;
}    

.mr-product--new .mr-product__labels .attribute-label.label-with-img img {
    display: block;
    width: auto;
    height: auto;
    max-width: 110px;
    max-height: 110px;
}

/* Fallback texte (terme sans image) */
.mr-product--new .mr-product__labels .attribute-label:not(.label-with-img) {
    padding: .35rem .65rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #fff;
    color: var(--mr-text);
    border-radius: var(--mr-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.mr-product--new .mr-product__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
    border-radius: var(--mr-radius);
}

/* Galerie : vignettes sous l'image principale */
.mr-product--new .mr-product__thumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.mr-product--new .mr-product__thumbs li {
    margin: 0;
}

.mr-product--new .mr-product__thumb {
    display: block;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 2px solid var(--mr-border);
    border-radius: var(--mr-radius);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s ease;
    width: 72px;
    height: 72px;
}

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

.mr-product--new .mr-product__thumb:hover,
.mr-product--new .mr-product__thumb:focus-visible {
    border-color: var(--mr-text);
    outline: none;
}

.mr-product--new .mr-product__thumb.is-active {
    border-color: var(--mr-accent);
}

.mr-product--new .mr-product__title {
    font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.25rem, 1.8vw, 1.625rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .25rem;
}

.mr-product--new .mr-product__subtitle {
    font-size: 1.125rem;
    color: var(--mr-muted);
    margin: 0 0 1.25rem;
}

.mr-product--new .mr-product__price {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.mr-product--new .mr-product__price .amount,
.mr-product--new .mr-product__price bdi {
    font-weight: 600;
}

.mr-product--new .mr-product__tagline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mr-text);
    margin: 0 0 .25rem;
}

.mr-product--new .mr-product__cepages {
    font-size: .9375rem;
    color: var(--mr-muted);
    margin: 0 0 .5rem;
}

.mr-product--new .mr-product__temperature {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9375rem;
    color: var(--mr-muted);
    margin: 0 0 1.5rem;
}

.mr-product--new .mr-product__temperature-icon {
    font-size: 1rem;
    color: var(--mr-text);
}

.mr-product--new .mr-product__temperature-label {
    color: var(--mr-text);
}

.mr-product--new .mr-product__temperature-value {
    color: var(--mr-muted);
}

.mr-product--new .mr-product__description {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0 0 1.5rem;
}

.mr-product--new .mr-product__description p {
    margin: 0 0 .5em;
}

.mr-product--new .mr-product__cart {
    margin: 0 0 2rem;
}

/* Pills format (Bouteille / Carton) — affichées si catégorie « bouteille » */
.mr-product--new .mr-product__format {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1.25rem;
}

.mr-product--new .mr-product__format-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border: 1px solid var(--mr-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--mr-accent);
    line-height: 1;
}

.mr-product--new .mr-product__format-pill--active {
    background: var(--mr-accent);
    color: #fff;
}

/* Variations (sélecteur Bouteille / Carton) */
.mr-product--new .mr-product__cart .variations {
    margin: 0 0 1rem;
    border: 0;
}
.mr-product--new .mr-product__cart .variations td,
.mr-product--new .mr-product__cart .variations th {
    padding: .25rem 0;
    border: 0;
    background: transparent;
}
.mr-product--new .mr-product__cart .variations label {
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--mr-muted);
}
.mr-product--new .mr-product__cart .reset_variations {
    display: inline-block;
    margin-top: .5rem;
    font-size: .8125rem;
}

/* Quantité + bouton sur la même ligne */
.mr-product--new .mr-product__cart form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.mr-product--new .mr-product__cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
}
.mr-product--new .mr-product__cart .quantity input.qty {
    width: 3rem;
    text-align: center;
    border: 0;
    background: transparent;
    padding: .5rem 0;
}

/* Bouton AJOUTER AU PANIER */
.mr-product--new .mr-product__cart .single_add_to_cart_button {
    background: var(--mr-accent);
    color: #fff;
    border: 0;
    padding: .85rem 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: var(--mr-radius);
    cursor: pointer;
    transition: background-color .15s ease;
}
.mr-product--new .mr-product__cart .single_add_to_cart_button:hover,
.mr-product--new .mr-product__cart .single_add_to_cart_button:focus {
    background: #971c25;
}

/* Services list */
.mr-product--new .mr-product__services {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--mr-border);
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.mr-product--new .mr-product__service {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .9375rem;
}

/* Item dépliable : colonne pour que le contenu prenne toute la largeur */
.mr-product--new .mr-product__service--toggleable {
    flex-direction: column;
    gap: 0;
}

.mr-product--new .mr-product__service-icon {
    color: var(--mr-text);
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
    margin-top: .15rem;
}

/* Bouton Fiche technique : style "lien", pas un vrai bouton visuellement */
.mr-product--new .mr-product__tech-toggle {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--mr-text);
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mr-product--new .mr-product__tech-toggle:focus-visible {
    outline: 2px solid var(--mr-accent);
    outline-offset: 2px;
}

/* Icône +/− (toggle) à droite du label */
.mr-product--new .mr-product__toggle-icon {
    margin-left: auto;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
    color: var(--mr-text);
}

.mr-product--new .mr-product__toggle-icon::before {
    content: "+";
}

.mr-product--new .mr-product__tech-toggle[aria-expanded="true"] .mr-product__toggle-icon::before {
    content: "−";
}

/* Fiche technique — bloc texte libre, pleine largeur de l'accordéon */
.mr-product--new .mr-product__tech-content {
    width: 100%;
    margin: .75rem 0 0;
    padding: 1rem 1.25rem;
    background: var(--mr-bg-soft);
    border-radius: var(--mr-radius);
    font-size: .9375rem;
    line-height: 1.35;
    color: var(--mr-text);
    white-space: pre-line;
    box-sizing: border-box;
}

.mr-product--new .mr-product__tech-content[hidden] {
    display: none;
}

/* Accordéons placés sous la description (Comment le déguster, Accords mets & vin) */
.mr-product--new .mr-product__content-accordions {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    border-top: 1px solid var(--mr-border);
}

.mr-product--new .mr-product__content-accordion {
    border-bottom: 1px solid var(--mr-border);
}

.mr-product--new .mr-product__content-accordion .mr-product__tech-toggle {
    padding: .85rem 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    font-size: 1rem;
}

.mr-product--new .mr-product__content-accordion-icon {
    color: var(--mr-text);
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.mr-product--new .mr-product__content-accordion-label {
    flex: 1 1 auto;
    text-transform: lowercase;
}

.mr-product--new .mr-product__content-accordion-label::first-letter {
    text-transform: uppercase;
}

.mr-product--new .mr-product__content-accordion .mr-product__tech-content {
    margin: 0 0 .85rem;
    line-height: 1.2;
    padding: .65rem 1rem;
}

/* Contenu HTML enrichi (WYSIWYG) : annule pre-line, normalise paragraphes/images */
.mr-product--new .mr-product__tech-content--rich {
    white-space: normal;
}

.mr-product--new .mr-product__tech-content--rich p {
    margin: 0 0 .5em;
}

.mr-product--new .mr-product__tech-content--rich p:last-child {
    margin-bottom: 0;
}

.mr-product--new .mr-product__tech-content--rich ul,
.mr-product--new .mr-product__tech-content--rich ol {
    margin: 0 0 .5em 1.2em;
}

.mr-product--new .mr-product__tech-content--rich img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.mr-product--new .mr-product__tech-content--rich a {
    color: var(--mr-accent);
    text-decoration: underline;
}

.mr-product--new .mr-product__tech-content--rich table {
    width: 100%;
    border-collapse: collapse;
    margin: .5rem 0;
    font-size: .9375rem;
}

.mr-product--new .mr-product__tech-content--rich table th,
.mr-product--new .mr-product__tech-content--rich table td {
    border: 1px solid var(--mr-border);
    padding: .4rem .6rem;
    text-align: left;
    vertical-align: top;
}

.mr-product--new .mr-product__tech-content--rich table th {
    background: var(--mr-bg-soft);
    font-weight: 700;
}

/* Lien fiche technique (PDF) sous l'accordéon "Informations et ingrédients" */
.mr-product--new .mr-product__techsheet-link {
    margin: .5rem 0 1.5rem;
    font-size: .9375rem;
}

.mr-product--new .mr-product__techsheet-link a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--mr-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mr-product--new .mr-product__techsheet-link a:hover,
.mr-product--new .mr-product__techsheet-link a:focus-visible {
    color: var(--mr-accent);
}

.mr-product--new .mr-product__techsheet-link i {
    font-size: 1rem;
}
