/*
  EDOUARGOT - produit.php mobile vendeur propre
  Desktop inchangé.
  Préloader inchangé.
  Objectif mobile :
  - label au-dessus de l'image
  - image non coupée
  - prix jaune EDOUARGOT sans bordure
  - prix proche de Commander
  - téléphone et mail lisibles
  - description mieux placée et alignée
*/

@media (max-width: 767px) {

  html body .edo-produit-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    width: min(calc(100% - 22px), 560px) !important;
    max-width: calc(100% - 22px) !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 14px auto 30px auto !important;
    padding: 16px 14px 20px 14px !important;

    gap: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    border-radius: 24px !important;
  }

  /* Permet de réordonner proprement les éléments en mobile sans toucher au HTML desktop */
  html body .edo-produit-col-gauche,
  html body .edo-produit-content {
    display: contents !important;
  }

  html body .edo-produit-label {
    order: 1 !important;

    display: block !important;
    width: fit-content !important;
    max-width: calc(100% - 12px) !important;

    margin: 0 auto 10px auto !important;
    padding: 6px 13px !important;

    text-align: center !important;
    line-height: 1.05 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  html body .edo-produit-image-wrap {
    order: 2 !important;

    width: min(100%, 350px) !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;

    margin: 0 auto 14px auto !important;
    padding: 10px !important;

    overflow: visible !important;
    box-sizing: border-box !important;
    border-radius: 22px !important;
  }

  html body .edo-produit-image {
    display: block !important;

    width: min(100%, 320px) !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 auto !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 18px !important;

    transform: none !important;
  }

  html body .edo-produit-content h1 {
    order: 3 !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto 10px auto !important;
    padding: 0 4px !important;

    text-align: center !important;
    line-height: 1.08 !important;
    font-size: clamp(1.45rem, 7vw, 2.05rem) !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
    box-sizing: border-box !important;
  }

  html body .edo-produit-accroche {
    order: 4 !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto 14px auto !important;
    padding: 0 5px !important;

    text-align: center !important;
    line-height: 1.45 !important;
    box-sizing: border-box !important;
  }

  html body .edo-produit-price {
    order: 5 !important;

    width: auto !important;
    max-width: 100% !important;

    margin: 0 auto 12px auto !important;
    padding: 0 !important;

    text-align: center !important;
    font-size: clamp(1.65rem, 8vw, 2.15rem) !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;

    color: #F5C063 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    text-shadow:
      0 1px 0 #330705,
      0 0 2px rgba(51, 7, 5, 0.65) !important;

    box-sizing: border-box !important;
  }

  html body .edo-commande-box {
    order: 6 !important;

    width: 100% !important;
    max-width: 420px !important;

    margin: 0 auto 18px auto !important;
    padding: 16px 13px 15px 13px !important;

    border-radius: 22px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  html body .edo-commande-pulse {
    width: fit-content !important;
    max-width: 100% !important;

    margin: 0 auto 14px auto !important;
    padding: 9px 20px !important;

    text-align: center !important;
    line-height: 1.05 !important;
  }

  /*
    Restauration propre des actions :
    pas compact, pas écrasé, téléphone et mail lisibles.
  */
  html body .edo-commande-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 360px !important;

    gap: 12px !important;
    margin: 0 auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;
  }

  html body .edo-commande-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;

    gap: 9px !important;
    margin: 0 auto !important;
    padding: 12px 13px !important;

    box-sizing: border-box !important;
    border-radius: 999px !important;
    text-align: center !important;
    overflow: visible !important;
  }

  html body .edo-commande-link span {
    flex: 0 0 auto !important;
    line-height: 1 !important;
    font-size: 1.12rem !important;
  }

  html body .edo-commande-link strong {
    min-width: 0 !important;
    max-width: 100% !important;

    font-size: clamp(0.92rem, 4vw, 1.02rem) !important;
    line-height: 1.12 !important;

    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  html body .edo-produit-description {
    order: 7 !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto 14px auto !important;
    padding: 15px 14px !important;

    box-sizing: border-box !important;
    border-radius: 20px !important;
    text-align: left !important;
  }

  html body .edo-produit-description h2 {
    margin: 0 0 9px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.1 !important;
  }

  html body .edo-produit-description p {
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.55 !important;
  }

  html body .edo-produit-infos-sous-image {
    order: 8 !important;

    display: grid !important;
    grid-template-columns: 1fr !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 10px !important;
    margin: 0 auto 14px auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;
  }

  html body .edo-produit-infos-sous-image .edo-produit-bon {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;
    padding: 12px 13px !important;

    box-sizing: border-box !important;
    border-radius: 18px !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
  }

  html body .edo-produit-infos-sous-image .edo-produit-bon strong {
    display: block !important;
    margin: 0 0 5px 0 !important;
    text-align: left !important;
  }

  html body .edo-produit-infos-sous-image .edo-produit-bon span {
    display: block !important;
    text-align: left !important;
    line-height: 1.45 !important;
  }

  html body .edo-produit-retour {
    order: 9 !important;

    width: fit-content !important;
    max-width: calc(100% - 10px) !important;

    margin: 2px auto 0 auto !important;
    padding: 9px 12px !important;

    text-align: center !important;
    box-sizing: border-box !important;
  }

  html body .edo-euro-tangue {
    display: inline-block !important;
    transform-origin: 50% 80% !important;
    animation: edo-euro-tangue-produit-mobile 1.35s ease-in-out infinite !important;
  }

  @keyframes edo-euro-tangue-produit-mobile {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-7deg) translateY(-1px); }
    50% { transform: rotate(6deg) translateY(0); }
    75% { transform: rotate(-4deg) translateY(-1px); }
  }
}

@media (max-width: 360px) {
  html body .edo-produit-card {
    width: min(calc(100% - 14px), 540px) !important;
    max-width: calc(100% - 14px) !important;
    padding: 14px 10px 18px 10px !important;
  }

  html body .edo-produit-image-wrap {
    width: min(100%, 320px) !important;
    padding: 8px !important;
  }

  html body .edo-produit-image {
    width: min(100%, 292px) !important;
  }

  html body .edo-produit-content h1 {
    font-size: clamp(1.34rem, 7.4vw, 1.85rem) !important;
  }

  html body .edo-produit-price {
    font-size: clamp(1.48rem, 7.8vw, 1.95rem) !important;
  }

  html body .edo-commande-box {
    padding: 14px 10px !important;
  }

  html body .edo-commande-actions {
    gap: 10px !important;
  }

  html body .edo-commande-link {
    min-height: 52px !important;
    padding: 11px 9px !important;
  }

  html body .edo-commande-link strong {
    font-size: 0.9rem !important;
  }
}


/* EDOUARGOT ORDRE MOBILE COMMANDE SOUS INFOS DEBUT */
@media (max-width: 767px) {

  /*
    Ordre mobile demandé :
    - label
    - image
    - titre
    - accroche
    - prix
    - description
    - ingrédients / conservation
    - commander
    - retour
  */

  html body .edo-produit-label {
    order: 1 !important;
  }

  html body .edo-produit-image-wrap {
    order: 2 !important;
  }

  html body .edo-produit-content h1 {
    order: 3 !important;
  }

  html body .edo-produit-accroche {
    order: 4 !important;
  }

  html body .edo-produit-price {
    order: 5 !important;
  }

  html body .edo-produit-description {
    order: 6 !important;
    margin-bottom: 14px !important;
  }

  html body .edo-produit-infos-sous-image {
    order: 7 !important;
    margin-bottom: 16px !important;
  }

  html body .edo-commande-box {
    order: 8 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }

  html body .edo-produit-retour {
    order: 9 !important;
  }

  html body .edo-commande-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .edo-commande-link {
    min-height: 54px !important;
    padding: 12px 14px !important;
  }
}
/* EDOUARGOT ORDRE MOBILE COMMANDE SOUS INFOS FIN */


/* EDOUARGOT MOBILE COMMANDE ANIMATION H1 PROPRE DEBUT */
@media (max-width: 767px) {

  /*
    H1 mobile :
    + gros d'environ 45%
    + espace clair après l'image
  */
  html body .edo-produit-image-wrap {
    margin-bottom: 24px !important;
  }

  html body .edo-produit-content h1 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;

    font-size: clamp(2.1rem, 10.2vw, 2.95rem) !important;
    line-height: 1.03 !important;
    text-align: center !important;
  }

  /*
    Commander mobile :
    on supprime le rond décoratif qui sort du cadre.
    On garde une zone propre, stable, lisible.
  */
  html body .edo-commande-box {
    position: relative !important;
    overflow: hidden !important;

    width: 100% !important;
    max-width: 430px !important;

    margin-left: auto !important;
    margin-right: auto !important;
    padding: 18px 14px 16px 14px !important;

    border-radius: 22px !important;
    box-sizing: border-box !important;
  }

  html body .edo-commande-box::before,
  html body .edo-commande-box::after {
    display: none !important;
    content: none !important;
    animation: none !important;
  }

  html body .edo-commande-pulse {
    position: relative !important;
    z-index: 1 !important;

    display: block !important;
    width: fit-content !important;
    max-width: calc(100% - 20px) !important;

    margin: 0 auto 15px auto !important;
    padding: 10px 22px !important;

    border-radius: 999px !important;
    text-align: center !important;
    line-height: 1 !important;

    animation: edo-commande-pulse-mobile-propre 1.7s ease-in-out infinite !important;
    transform-origin: center center !important;
  }

  html body .edo-commande-pulse::before,
  html body .edo-commande-pulse::after {
    display: none !important;
    content: none !important;
  }

  html body .edo-commande-actions {
    position: relative !important;
    z-index: 1 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    width: 100% !important;
    max-width: 380px !important;

    gap: 12px !important;
    margin: 0 auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;
  }

  html body .edo-commande-link {
    position: relative !important;
    z-index: 1 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;

    gap: 10px !important;
    margin: 0 auto !important;
    padding: 12px 14px !important;

    box-sizing: border-box !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  html body .edo-commande-link span {
    flex: 0 0 auto !important;
    line-height: 1 !important;
  }

  html body .edo-commande-link strong {
    min-width: 0 !important;
    max-width: 100% !important;

    line-height: 1.12 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  @keyframes edo-commande-pulse-mobile-propre {
    0%, 100% {
      transform: scale(1);
      filter: brightness(1);
    }
    50% {
      transform: scale(1.035);
      filter: brightness(1.08);
    }
  }
}

@media (max-width: 360px) {
  html body .edo-produit-image-wrap {
    margin-bottom: 22px !important;
  }

  html body .edo-produit-content h1 {
    font-size: clamp(1.9rem, 10vw, 2.55rem) !important;
    line-height: 1.04 !important;
    margin-bottom: 14px !important;
  }

  html body .edo-commande-box {
    padding: 16px 10px 15px 10px !important;
  }

  html body .edo-commande-link {
    min-height: 52px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
/* EDOUARGOT MOBILE COMMANDE ANIMATION H1 PROPRE FIN */


/* EDOUARGOT MOBILE H1 ACCROCHE PRODUIT PROPRE DEBUT */
@media (max-width: 767px) {

  /*
    Image produit :
    on garde une vraie respiration avant le titre.
  */
  html body .edo-produit-image-wrap {
    margin-bottom: 30px !important;
  }

  /*
    Titre produit mobile :
    plus lisible, moins collé, moins écrasé.
    On évite l'effet Snailets trop agressif sur mobile.
  */
  html body .edo-produit-content h1 {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto 18px auto !important;
    padding: 0 10px !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(1.65rem, 8.4vw, 2.28rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;

    color: #330705 !important;
    text-align: center !important;
    text-transform: none !important;

    text-shadow: none !important;
    -webkit-text-stroke: 0 transparent !important;
    paint-order: normal !important;
    filter: none !important;

    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;

    box-sizing: border-box !important;
  }

  /*
    Accroche mobile :
    bloc mieux aligné, plus respirant, lisible.
  */
  html body .edo-produit-accroche {
    display: block !important;

    width: min(100%, 420px) !important;
    max-width: 100% !important;

    margin: 0 auto 18px auto !important;
    padding: 13px 14px !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(0.98rem, 4.3vw, 1.08rem) !important;
    font-weight: 700 !important;
    line-height: 1.42 !important;

    color: #330705 !important;
    text-align: center !important;

    background: rgba(255, 252, 244, 0.82) !important;
    border-left: 3px solid #F5C063 !important;
    border-right: 3px solid #F5C063 !important;
    border-radius: 16px !important;

    box-shadow: 0 6px 14px rgba(51, 7, 5, 0.08) !important;
    box-sizing: border-box !important;
  }

  /*
    Le prix reste bien visible après l'accroche.
  */
  html body .edo-produit-price {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    color: #F5C063 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 360px) {
  html body .edo-produit-image-wrap {
    margin-bottom: 26px !important;
  }

  html body .edo-produit-content h1 {
    font-size: clamp(1.48rem, 8vw, 2rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  html body .edo-produit-accroche {
    font-size: 0.96rem !important;
    line-height: 1.38 !important;
    padding: 12px 11px !important;
  }
}
/* EDOUARGOT MOBILE H1 ACCROCHE PRODUIT PROPRE FIN */


/* EDOUARGOT MOBILE H1 SNAILETS ESPACE IMAGE DEBUT */
@media (max-width: 767px) {

  /*
    Petit espace visuel entre l'image produit et le titre.
    Équivalent propre d'un petit <br>, sans modifier le HTML.
  */
  html body .edo-produit-image-wrap {
    margin-bottom: 14px !important;
  }

  /*
    Titre produit mobile en Snailets, mais contenu dans la largeur mobile.
  */
  html body .edo-produit-content h1 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;

    font-family: "Snailets BRK", "Snailets", Arial, Helvetica, sans-serif !important;
    font-size: clamp(1.55rem, 8vw, 2.25rem) !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    letter-spacing: 0.01em !important;

    color: #330705 !important;
    text-align: center !important;
    text-transform: none !important;

    text-shadow:
      0 1px 0 #fff7e6,
      0 0 1px rgba(51, 7, 5, 0.35) !important;

    -webkit-text-stroke: 0 transparent !important;
    paint-order: normal !important;
    filter: none !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

@media (max-width: 360px) {
  html body .edo-produit-image-wrap {
    margin-bottom: 12px !important;
  }

  html body .edo-produit-content h1 {
    font-size: clamp(1.42rem, 7.6vw, 1.95rem) !important;
    line-height: 1.16 !important;
    margin-bottom: 14px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}
/* EDOUARGOT MOBILE H1 SNAILETS ESPACE IMAGE FIN */


/* EDOUARGOT MOBILE H1 SNAILETS PLUS GRAND ESPACE DEBUT */
@media (max-width: 767px) {

  /*
    Espace sous l'image produit, à l'endroit du trait rouge.
  */
  html body .edo-produit-image-wrap {
    margin-bottom: 28px !important;
  }

  /*
    H1 produit mobile :
    Snailets conservée, environ 35% plus grande.
  */
  html body .edo-produit-content h1 {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;

    font-family: "Snailets BRK", "Snailets", Arial, Helvetica, sans-serif !important;
    font-size: clamp(2.1rem, 10.8vw, 3.05rem) !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    letter-spacing: 0.01em !important;

    color: #330705 !important;
    text-align: center !important;
    text-transform: none !important;

    text-shadow:
      0 1px 0 #fff7e6,
      0 0 1px rgba(51, 7, 5, 0.35) !important;

    -webkit-text-stroke: 0 transparent !important;
    paint-order: normal !important;
    filter: none !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

@media (max-width: 360px) {
  html body .edo-produit-image-wrap {
    margin-bottom: 24px !important;
  }

  html body .edo-produit-content h1 {
    font-size: clamp(1.92rem, 10.2vw, 2.65rem) !important;
    line-height: 1.16 !important;
    margin-bottom: 16px !important;
  }
}
/* EDOUARGOT MOBILE H1 SNAILETS PLUS GRAND ESPACE FIN */


/* EDOUARGOT MOBILE SAUT IMAGE H1 FINAL DEBUT */
@media (max-width: 767px) {

  /*
    Vrai saut visuel entre l'image produit et le titre.
    On agit sur les deux côtés :
    - marge sous l'image
    - padding haut dans le h1
  */
  html body .edo-produit-image-wrap {
    margin-bottom: 38px !important;
  }

  html body .edo-produit-content h1 {
    display: block !important;

    margin-top: 0 !important;
    margin-bottom: 18px !important;

    padding-top: 14px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;

    font-family: "Snailets BRK", "Snailets", Arial, Helvetica, sans-serif !important;
    font-size: clamp(2.1rem, 10.8vw, 3.05rem) !important;
    line-height: 1.18 !important;

    text-align: center !important;
  }

  html body .edo-produit-content h1::before {
    content: "" !important;
    display: block !important;
    height: 8px !important;
    width: 100% !important;
  }
}

@media (max-width: 360px) {
  html body .edo-produit-image-wrap {
    margin-bottom: 34px !important;
  }

  html body .edo-produit-content h1 {
    padding-top: 12px !important;
    font-size: clamp(1.92rem, 10.2vw, 2.65rem) !important;
  }

  html body .edo-produit-content h1::before {
    height: 6px !important;
  }
}
/* EDOUARGOT MOBILE SAUT IMAGE H1 FINAL FIN */

