/* ==========================================================================
   Fiche produit : reproduction du modele Elementor 724. Cotes relevees :
   titre h1 Raleway 2,5rem 800, ligne code article Quicksand 0,8rem 700
   #999999, colonnes 60 % / 40 % au-dessus de 767 px (ecart de 20 px absorbe
   par retrecissement, comme les conteneurs Elementor), separateur a feuille,
   h2 Raleway 1,4rem 700, bloc "Autres produits" a marge basse de 6em.
   ========================================================================== */

/* Fil d'Ariane plus petit que sur les archives (0,9rem). */
.hpt-product .hpt-breadcrumb .woocommerce-breadcrumb {
    font-size: 0.9rem;
}

/* Titre et code article */
.hpt-product .hpt-product__head > .hpt-boxed__inner {
    gap: 0;
}

.hpt-product .hpt-product__title {
    margin: 0;
    padding: 0;
    color: var( --e-global-color-text );
    font-family: "Raleway", Sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2em;
}

.hpt-product .hpt-product__sku {
    color: #999999;
    font-family: "Quicksand", Sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2em;
}

/* Colonnes */
.hpt-product .hpt-product__main > .hpt-boxed__inner {
    flex-direction: row;
}

.hpt-product .hpt-product__col {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 20px;
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 10px;
}

.hpt-product .hpt-product__col > *,
.hpt-product .hpt-product__head .hpt-product__sku {
    position: relative;
    max-width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .hpt-product .hpt-product__col--media {
        width: 60%;
    }

    .hpt-product .hpt-product__col--summary {
        width: 40%;
    }
}

/* Retour a la ligne des conteneurs sous 768 px : voir layout.css. */
@media (max-width: 767px) {
    .hpt-product .hpt-product__col,
    .hpt-product .hpt-product__related-box {
        flex-wrap: wrap;
    }
}

/* Largeur explicite de la galerie (widget a largeur "initiale" 100 %) et du
   separateur (regle du widget Separateur), comme chez Elementor : sans elle,
   le retour a la ligne mobile (voir layout.css) dimensionne la galerie a une
   largeur intermediaire et la photo perd une fraction de pixel. */
.hpt-product .hpt-product__gallery,
.hpt-product .hpt-divider {
    width: 100%;
}

/* Galerie (widget Images du produit d'Elementor Pro et CSS personnalise du
   modele : photo plafonnee a 400 px de haut, jamais deformee). */
body.woocommerce #content div.product .hpt-product__gallery div.images,
body.woocommerce div.product .hpt-product__gallery div.images,
body.woocommerce-page #content div.product .hpt-product__gallery div.images,
body.woocommerce-page div.product .hpt-product__gallery div.images {
    float: none;
    width: 100%;
    padding: 0;
}

.woocommerce-product-gallery__image img {
    max-height: 400px;
    width: auto;
    object-fit: contain;
}

/* Separateur ligne + feuille (widget Separateur d'Elementor). */
.hpt-product .hpt-divider {
    display: flex;
    padding-block-start: 15px;
    padding-block-end: 15px;
}

.hpt-product .hpt-divider__separator {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    direction: ltr;
}

.hpt-product .hpt-divider__separator::before,
.hpt-product .hpt-divider__separator::after {
    content: "";
    display: block;
    flex-grow: 1;
    border-block-start: 1px solid var( --e-global-color-accent );
    border-block-end: 0;
}

.hpt-product .hpt-divider__icon {
    display: inline-block;
    flex-shrink: 0;
    margin: 0 10px;
    color: var( --e-global-color-primary );
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.hpt-product .hpt-divider__icon svg {
    display: block;
    position: relative;
    width: 1em;
    height: 1em;
    fill: var( --e-global-color-primary );
}

/* Titre de la colonne resume (h2, comme le widget Titre du produit). */
.woocommerce div.product .hpt-product__name {
    margin: 0;
    padding: 0;
    color: var( --e-global-color-text );
    font-family: "Raleway", Sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2em;
}

/* Autres produits */
.hpt-product .hpt-product__related {
    padding-right: 0;
    padding-left: 0;
}

.hpt-product .hpt-product__related > .hpt-boxed__inner {
    padding: 0 0 6em;
}

.hpt-product .hpt-product__related-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 30px;
}

.hpt-product .hpt-product__related-box > * {
    position: relative;
    max-width: 100%;
    min-width: 0;
}

.hpt-product .hpt-product__related-title {
    color: var( --e-global-color-text );
    font-family: "Raleway", Sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2em;
}
