/*
 * Presentation publique de FluentCart pour le Riad l'Oasis.
 * Le produit utilise toute la largeur disponible et n'affiche pas les
 * metadonnees d'article du theme (date et auteur).
 */

body.single-fluent-products #primary {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

body.single-fluent-products #secondary,
body.single-fluent-products article.type-fluent-products > .post-meta {
  display: none !important;
}

/*
 * Le theme duplique l'image mise en avant avant la fiche FluentCart. Cette
 * image pleine largeur repousse le titre, le descriptif, le prix et les CTA
 * sous la ligne de flottaison. La galerie FluentCart reste visible dans la
 * fiche : seul le doublon du theme est masque.
 */
body.single-fluent-products article.type-fluent-products > .evolve-plus-post-thumbnail {
  display: none !important;
}

/*
 * La description utile reste dans le bloc de décision, avant le prix et les
 * boutons. Le script ne déplace que le contenu éditorial compris entre la
 * fiche FluentCart et la liste des services complémentaires.
 */
body.single-fluent-products .oasis-product-long-description {
  margin: 18px 0 20px;
  color: #343746;
  font-family: Lato, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.62;
}

body.single-fluent-products .oasis-product-long-description p {
  margin: 0 0 12px;
}

body.single-fluent-products .oasis-product-long-description ul,
body.single-fluent-products .oasis-product-long-description ol {
  margin: 2px 0 14px;
  padding-left: 20px;
}

body.single-fluent-products .oasis-product-long-description li + li {
  margin-top: 4px;
}

body.single-fluent-products .oasis-product-long-description strong {
  color: #262b39;
  font-weight: 600;
}

/*
 * Bagagerie : le tarif et la quantite sont expliques avant les choix. Le
 * pictogramme generique de FluentCart est remplace par une valise doree.
 */
body.single-fluent-products.postid-14059 .oasis-baggage-price-range {
  display: block;
  margin: 0 0 14px;
  color: #263247;
  font-family: Lato, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

body.single-fluent-products.postid-14059 .oasis-baggage-selector-heading {
  margin: 0 0 12px;
  color: #343746;
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

body.single-fluent-products.postid-14059 .fct-product-variant-image,
.fct-single-product-page[data-product-id="14059"] .fct-product-variant-image {
  width: 22px;
  min-width: 22px;
  height: 22px;
  background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c59a32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7V5.5C9 4.67 9.67 4 10.5 4h3c.83 0 1.5.67 1.5 1.5V7'/%3E%3Crect x='5' y='7' width='14' height='13' rx='2'/%3E%3Cpath d='M9 7v13M15 7v13'/%3E%3C/svg%3E");
}

body.single-fluent-products.postid-14059 .fct-product-variant-image img,
.fct-single-product-page[data-product-id="14059"] .fct-product-variant-image img {
  display: none !important;
}

body.single-fluent-products nav[aria-label="Breadcrumb"] .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

body.single-fluent-products nav[aria-label="Breadcrumb"] .breadcrumb-item a {
  color: #263247;
  text-decoration: none;
}

body.single-fluent-products nav[aria-label="Breadcrumb"] .breadcrumb-item a:hover,
body.single-fluent-products nav[aria-label="Breadcrumb"] .breadcrumb-item a:focus-visible {
  color: #b58a16;
  text-decoration: underline;
}

body.single-fluent-products nav[aria-label="Breadcrumb"] .breadcrumb-item.active {
  color: #6b6f78;
}

/*
 * Le bloc des services complementaires est separe de la fiche par le meme
 * filet dore effile que sur les pages d'accueil et de chambres du Riad.
 */
body.single-fluent-products .fct-similar-product-list-container::before {
  content: "";
  display: block;
  width: 72%;
  height: 2px;
  margin: 16px auto 36px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e8c547 22%,
    #e8c547 78%,
    transparent 100%
  );
}

@media (max-width: 767px) {
  body.single-fluent-products .oasis-product-long-description {
    margin: 15px 0 18px;
    font-size: 14px;
    line-height: 1.58;
  }

  body.single-fluent-products .fct-similar-product-list-container::before {
    width: 82%;
    margin: 12px auto 28px;
  }

  body.single-fluent-products.postid-14059 .oasis-baggage-price-range {
    font-size: 19px;
  }

  body.single-fluent-products.postid-14059 .oasis-baggage-selector-heading {
    font-size: 15px;
  }
}

/* Le theme rendait le libelle presque invisible au survol. */
body.single-fluent-products .fluent-cart-add-to-cart-button:hover,
body.single-fluent-products .fluent-cart-add-to-cart-button:focus,
body.single-fluent-products .fluent-cart-add-to-cart-button:focus-visible {
  background: #1f2f40 !important;
  border-color: #1f2f40 !important;
  color: #ffffff !important;
}

/*
 * Bloc d'achat des fiches et fenetres rapides : le montant devient un vrai
 * repere de decision et les deux actions reprennent le noir et l'or des CTA
 * de la page d'accueil. Les cartes de la collection ne sont pas concernees.
 */
body.single-fluent-products .fct-product-prices,
.fct-single-product-page .fct-product-prices {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 24px 0 16px !important;
  padding: 14px 18px 15px;
  border: 1px solid rgba(232, 197, 71, 0.72);
  border-left: 4px solid #e8c547;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 3px 10px rgba(39, 48, 57, 0.08);
}

body.single-fluent-products .fct-product-prices::before,
.fct-single-product-page .fct-product-prices::before {
  content: "Montant total";
  color: #5f4510;
  font-family: Lato, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Une vraie fourchette n'est pas un total : son libelle reste explicite. */
body.single-fluent-products .fct-product-prices:has(.fct-min-price):has(.fct-max-price)::before,
.fct-single-product-page .fct-product-prices:has(.fct-min-price):has(.fct-max-price)::before {
  content: "Tarifs disponibles";
}

body.single-fluent-products .fct-product-prices .fct-item-price,
.fct-single-product-page .fct-product-prices .fct-item-price {
  color: #273039 !important;
  font-family: Lato, Arial, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/*
 * Produits a variantes : FluentCart affiche d'abord la fourchette, puis le
 * prix reel de la variante selectionnee. Ce second prix est le montant total.
 */
body.single-fluent-products .fct-product-item-price:not(.is-hidden),
.fct-single-product-page .fct-product-item-price:not(.is-hidden) {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 18px 0 16px !important;
  padding: 14px 18px 15px;
  border: 1px solid rgba(232, 197, 71, 0.72);
  border-left: 4px solid #e8c547;
  border-radius: 8px;
  background: #fffaf0;
  color: #273039 !important;
  font-family: Lato, Arial, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(39, 48, 57, 0.08);
}

body.single-fluent-products .fct-product-item-price:not(.is-hidden)::before,
.fct-single-product-page .fct-product-item-price:not(.is-hidden)::before {
  content: "Montant total";
  color: #5f4510;
  font-family: Lato, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.single-fluent-products .fct_buy_section .fct-product-buttons-wrap,
.fct-single-product-page .fct_buy_section .fct-product-buttons-wrap {
  gap: 14px !important;
}

body.single-fluent-products .fct_buy_section .fluent-cart-direct-checkout-button,
body.single-fluent-products .fct_buy_section .fluent-cart-add-to-cart-button,
.fct-single-product-page .fct_buy_section .fluent-cart-direct-checkout-button,
.fct-single-product-page .fct_buy_section .fluent-cart-add-to-cart-button {
  box-sizing: border-box;
  min-height: 50px;
  padding: 13px 24px !important;
  border: 2px solid #e8c547 !important;
  border-radius: 8px !important;
  font-family: Lato, Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
  box-shadow: 0 3px 10px rgba(39, 48, 57, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.single-fluent-products .fct_buy_section .fluent-cart-direct-checkout-button,
.fct-single-product-page .fct_buy_section .fluent-cart-direct-checkout-button {
  background: #273039 !important;
  color: #ffffff !important;
}

body.single-fluent-products .fct_buy_section .fluent-cart-add-to-cart-button,
.fct-single-product-page .fct_buy_section .fluent-cart-add-to-cart-button {
  background: #fffdf7 !important;
  color: #273039 !important;
}

body.single-fluent-products .fct_buy_section .fluent-cart-direct-checkout-button:hover,
body.single-fluent-products .fct_buy_section .fluent-cart-direct-checkout-button:focus-visible,
.fct-single-product-page .fct_buy_section .fluent-cart-direct-checkout-button:hover,
.fct-single-product-page .fct_buy_section .fluent-cart-direct-checkout-button:focus-visible {
  background: #1f2326 !important;
  border-color: #e8c547 !important;
  color: #e8c547 !important;
  box-shadow: 0 8px 18px rgba(39, 48, 57, 0.28);
  transform: translateY(-2px) scale(1.015);
}

body.single-fluent-products .fct_buy_section .fluent-cart-add-to-cart-button:hover,
body.single-fluent-products .fct_buy_section .fluent-cart-add-to-cart-button:focus-visible,
.fct-single-product-page .fct_buy_section .fluent-cart-add-to-cart-button:hover,
.fct-single-product-page .fct_buy_section .fluent-cart-add-to-cart-button:focus-visible {
  background: #e8c547 !important;
  border-color: #e8c547 !important;
  color: #273039 !important;
  box-shadow: 0 6px 16px rgba(39, 48, 57, 0.16);
  transform: translateY(-1px);
}

body.single-fluent-products .fct_buy_section .fluent-cart-direct-checkout-button:focus-visible,
body.single-fluent-products .fct_buy_section .fluent-cart-add-to-cart-button:focus-visible,
.fct-single-product-page .fct_buy_section .fluent-cart-direct-checkout-button:focus-visible,
.fct-single-product-page .fct_buy_section .fluent-cart-add-to-cart-button:focus-visible {
  outline: 3px solid rgba(232, 197, 71, 0.38) !important;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  body.single-fluent-products .fct-product-prices,
  .fct-single-product-page .fct-product-prices {
    margin-top: 20px !important;
    padding: 13px 15px 14px;
  }

  body.single-fluent-products .fct-product-prices .fct-item-price,
  .fct-single-product-page .fct-product-prices .fct-item-price {
    font-size: 19px !important;
  }

  body.single-fluent-products .fct-product-item-price:not(.is-hidden),
  .fct-single-product-page .fct-product-item-price:not(.is-hidden) {
    padding: 13px 15px 14px;
    font-size: 19px !important;
  }

  body.single-fluent-products .fct_buy_section .fct-product-buttons-wrap,
  .fct-single-product-page .fct_buy_section .fct-product-buttons-wrap {
    grid-template-columns: 1fr !important;
  }
}

/* Les services complementaires ne recueillent pas d'avis produit. */
body.single-fluent-products .fct-product-reviews-section {
  display: none !important;
}

/* Le prix reste visible sur chaque fiche : son filtre lateral n'apporte rien
 * a une collection courte de services et alourdit inutilement la lecture. */
body.page-id-13972 .oasis-shop-price-filter,
body.page-id-11394 .oasis-shop-price-filter {
  display: none !important;
}

/*
 * Boutique des services : les actions des cartes reprennent le bouton
 * principal valide sur les fiches individuelles. Ajouter au panier et Voir
 * les options partagent ainsi les memes proportions, bordure et survol.
 */
body.page-id-13972 .fct-product-card .wp-block-fluent-cart-shopapp-product-buttons,
body.page-id-11394 .fct-product-card .wp-block-fluent-cart-shopapp-product-buttons {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px !important;
  border: 2px solid #e8c547 !important;
  border-radius: 8px !important;
  background: #273039 !important;
  color: #ffffff !important;
  font-family: Lato, Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
  box-shadow: 0 3px 10px rgba(39, 48, 57, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.page-id-13972 .fct-product-card .wp-block-fluent-cart-shopapp-product-buttons:hover,
body.page-id-13972 .fct-product-card .wp-block-fluent-cart-shopapp-product-buttons:focus-visible,
body.page-id-11394 .fct-product-card .wp-block-fluent-cart-shopapp-product-buttons:hover,
body.page-id-11394 .fct-product-card .wp-block-fluent-cart-shopapp-product-buttons:focus-visible {
  background: #1f2326 !important;
  border-color: #e8c547 !important;
  color: #e8c547 !important;
  box-shadow: 0 8px 18px rgba(39, 48, 57, 0.28);
  transform: translateY(-2px) scale(1.015);
}

body.page-id-13972 .fct-product-card .wp-block-fluent-cart-shopapp-product-buttons:focus-visible,
body.page-id-11394 .fct-product-card .wp-block-fluent-cart-shopapp-product-buttons:focus-visible {
  outline: 3px solid rgba(232, 197, 71, 0.38) !important;
  outline-offset: 3px;
}

/*
 * Produits associes des fiches individuelles : le bouton reprend exactement
 * la presentation de l'action principale "Reserver maintenant", sans la
 * capitalisation automatique appliquee par FluentCart.
 */
body.single-fluent-products
  .fct-similar-product-list-container
  .fct-product-card
  .fluent-cart-add-to-cart-button {
  box-sizing: border-box;
  width: 100%;
  height: 50px !important;
  min-height: 50px;
  padding: 13px 24px !important;
  border: 2px solid #e8c547 !important;
  border-radius: 8px !important;
  background: #273039 !important;
  color: #ffffff !important;
  font-family: Lato, Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none !important;
  box-shadow: 0 3px 10px rgba(39, 48, 57, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.single-fluent-products
  .fct-similar-product-list-container
  .fct-product-card
  .fluent-cart-add-to-cart-button
  .fct-button-text {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit;
  text-transform: none !important;
}

body.single-fluent-products
  .fct-similar-product-list-container
  .fct-product-card
  .fluent-cart-add-to-cart-button:hover,
body.single-fluent-products
  .fct-similar-product-list-container
  .fct-product-card
  .fluent-cart-add-to-cart-button:focus-visible {
  background: #1f2326 !important;
  border-color: #e8c547 !important;
  color: #e8c547 !important;
  box-shadow: 0 8px 18px rgba(39, 48, 57, 0.28);
  transform: translateY(-2px) scale(1.015);
}

body.single-fluent-products
  .fct-similar-product-list-container
  .fct-product-card
  .fluent-cart-add-to-cart-button:focus-visible {
  outline: 3px solid rgba(232, 197, 71, 0.38) !important;
  outline-offset: 3px;
}

/*
 * Confirmation de commande : la salutation reste distincte sans dominer la
 * phrase de confirmation. Les marges explicites conservent le meme rythme
 * dans les principaux navigateurs et aux largeurs mobiles.
 */
.fct-thank-you-page-body-content-inner > .no-print {
  margin: 0 0 22px !important;
}

.fct-thank-you-page-body-content-inner > .no-print > .no-print-title {
  margin: 0 0 10px !important;
  color: #252b3b !important;
  font-family: Lato, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.fct-thank-you-page-body-content-inner > .no-print > p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

@media (max-width: 600px) {
  .fct-thank-you-page-body-content-inner > .no-print {
    margin-bottom: 18px !important;
  }

  .fct-thank-you-page-body-content-inner > .no-print > .no-print-title {
    font-size: 17px !important;
  }
}
