/*
Theme Name: Mon Thème Elementor
Template: hello-elementor
*/

.woocommerce span.onsale {
  background-color: #32455d !important;
  z-index: 1;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  ul.products
  li.product
  .price {
  color: #32455d;
}

.woocommerce .woocommerce-breadcrumb {
  margin: 2em;
  margin-bottom: 2em;
  padding: 0;
  text-align: center;
}

/**MENU*/
.site-header .site-navigation ul.sub-menu li a {
  display: block;
  width: 100%;
  color: #32455d !important;
  text-align: start;
}
.site-header .site-navigation ul.sub-menu li a:hover {
  background-color: white;
}

.site-navigation ul.menu li ul li.menu-item-has-children {
  align-items: center;
}
.site-navigation ul.menu li ul li.menu-item-has-children:after {
  transform: rotate(-90deg) !important;
}

.site-navigation .sub-menu {
  transition: opacity 0.2s ease-in;
  @starting-style {
    opacity: 0;
  }
}

header h1 {
  text-align: center;
  color: #32455d;
}

.page-header,
.site-header .header-inner {
  max-width: 1600px !important;
}
.site-navigation .menu {
  margin-top: 2rem;
  justify-content: center !important;
  font-size: 16px;
}

/* Barre de recherche */
.search-form {
  display: flex;
  label {
    flex: 1;
  }
}

.search-field {
  background: #425b7a;
  color: white;
  border: none !important;
  border-radius: 0 !important;
  &::placeholder {
    color: rgba(255, 255, 255, 0.692);
  }
}

.search-form .search-submit[type="submit"] {
  background-color: #425b7a;
  color: white;
  border-radius: 0;
  border: 0;
  &:hover {
    background-color: #32455d;
  }
}

/** FICHE ARTICLE*/
/** Pour éviter que le prix soit souligné*/
ins {
  text-decoration: none;
}
/** Couleur catégorie*/
.product_meta a {
  color: #c0a589;
}
/** Couleur stock*/
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
  color: #7b6a58;
}

/** Couleur bouton fiche article*/
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  #respond
  input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  #respond
  input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  input.button.alt {
  background-color: #c0a589;
  color: #fff;
  -webkit-font-smoothing: antialiased;

  &:hover {
    background-color: #c0a589ad;
  }
}
.woocommerce div.product form.cart .button {
  vertical-align: middle;
  float: left;
  background-color: #c0a589;
}

/** Prix fiche article*/
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
  div.product
  span.price {
  color: #32455d;
  font-size: 20px;
}

/** PAGE CATEGORIE*/
/** Couleur et centrage titre article*/
.woocommerce h2,
h3,
h4,
h5,
h6 {
  color: #32455d;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 1em;
}
/** Centrage prix*/
.price {
  text-align: center;

  bdi {
    font-size: 20px;
  }
}

.a.button.product_type_simple.add_to_cart_button_ajax_add_to_cart {
  text-align: center;
}

/** Filtre*/
.woocommerce .woocommerce-ordering {
  margin: 0 1 3em;
}

.woocommerce .woocommerce-result-count {
  margin: 0 0 1em;
  text-align: center;
}

bdi {
  size: 2em;
}
/** PAGE CONTACT*/
/** Formulaire*/
/** Centrage formulaire*/

form label {
  display: grid;
  gap: 0.5rem;
}

form p:has([type="submit"]) {
  text-align: center;
}

.woocommerce .product {
  text-align: center;
}

form button {
  /* background-color: transparent; */
  /* border: 1px solid #c36; */
  border-radius: 3px;
  color: #32455d;
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
  text-align: center;
  transition: all 0.3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  white-space: nowrap;
}

/* couleur pagination; */
.woocommerce-pagination {
  background-color: transparent;
  text-decoration: none;

  a {
    color: #32455d;
  }
}

/* Réduire et centrer les images dans les résultats de recherche */
article.post a img.wp-post-image {
  display: block !important;
  margin: 0 auto !important;
  max-width: 250px !important;
  height: auto !important;
}

/*Containeur du Fibosearch*/
.dgwt-wcas-search-wrapp {
  max-width: 100% !important;
  background: #32455d;
}

/*Contour du Fibosearch*/
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
  margin-inline: auto;
  background-color: transparent;
  padding: 10px;
  border-radius: 0px;
  padding-bottom: 20px;
  max-width: 600px;
}

/*Input du Fibosearch*/
.dgwt-wcas-style-pirx
  .dgwt-wcas-sf-wrapp
  input[type="search"].dgwt-wcas-search-input {
  color: #32455d;
  background-color: #FFFF;
      padding: 8px 24px 8px 48px;

  &::placeholder {
    color: #32455d;
  }
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    top: 16px;
}
