/*
 Theme Name:   Karethic theme
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.message_bandeau {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1em;
  font-size: 0.8em;
}
.message_bandeau i {
  font-size: 0.8em;
  margin-left: 1em;
}

/* La recherche */
.inside-header {
  position: relative;
}

@media screen and (min-width: 1024px) {
  .search-form {
    display: flex;
    position: absolute;
    top: 50%;
    right: 64px;
    transform: translateY(-50%);
  }
}
.search-form input[type="search"] {
  padding: 0.5em 1em;
}
.search-form input[type="submit"] {
  background-color: #f8b332;
  padding: 0.5em 1em;
}
.star-rating > span::before {
  color: #f8b332 !important;
}

.btn-diagnostic {
  display: flex !important;
  justify-content: center;
}

@media screen and (max-width: 600px) {
  .btn-diagnostic > a {
    font-size: 0.85em !important;
  }
}
.generate-back-to-top {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 100px;
}

/* Global type */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}
/* helpers */
@media screen and (min-width: 769px) {
  .full_width {
    position: relative;
    left: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .full_width .uagb-section__inner-wrap {
    max-width: 1200px;
  }
}
.align_center {
  text-align: center;
  justify-content: center;
}

.wp-block-button__link {
  border-radius: 0;
}
/* header */
.inside-header {
  padding: 0;
}
.site-logo {
  margin: 1em;
}
#site-navigation {
  border-bottom: 1px rgba(0, 0, 0, 0.1) solid !important;
  padding-bottom: 1em;
}
body nav#site-navigation {
  max-width: 1100px !important;
}
@media screen and (min-width: 900px) {
  body #mega-menu-primary {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  body #mega-menu-primary > li > a {
    font-size: 1.4em !important;
    font-family: "Playfair Display", serif !important;
  }
  #mega-menu-primary .cart-contents {
    margin: 0 0.3em 0 0.6em;
  }
  #mega-menu-primary .cart-contents:before {
    position: relative;
    z-index: 1;
  }
  #mega-menu-primary .cart-contents > span.number-of-items {
    position: absolute;
    top: 0;
    right: -0.5em;
    z-index: 1000;
    background-color: #000;
    font-family: sans-serif;
    color: #fff;
  }
}

/* Homepage stuff */
.wc-block-grid__product {
  padding: 1em;
  display: flex;
  flex-direction: column;
}
.wc-block-grid__product .wc-block-grid__product-image {
  max-width: 50%;
  min-height: 150px;
  display: flex;
  align-items: center;
  margin: auto;
}
.inside-wc-product-image img {
  max-width: 80%;
  margin: auto !important;
}
body .products .onsale,
.wc-block-grid__product-onsale {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 0;
  background-color: #41281c;
  color: #fff;
  border-radius: 0;
  padding: 0 1em;
}
.wc-block-grid__product-title,
.woocommerce-loop-product__title {
  font-family: "Playfair Display", serif;
  font-size: 1.5em;
  color: #41281c;
  font-weight: 500;
}
.products .amount,
.wc-block-grid__product .amount {
  font-size: 1.2em;
  font-weight: bold;
}
.wc-block-grid__product .wp-block-button {
  margin-top: auto;
}
.products .add_to_cart_button,
.wc-block-grid__product .add_to_cart_button {
  font-size: 0.9em !important;
  padding: 0.5em 1em !important;
  margin-top: auto !important;
}
.home .advgb-count-up.wp-block-advgb-count-up {
  margin-top: 0 !important;
}
.home .advgb-count-up-columns-one {
  z-index: -1 !important;
  background-color: #fff;
  max-width: 50%;
  margin: auto !important;
  padding: 2em;
  border-radius: 10px;
}
.advgb-count-up-header {
  margin: 0;
}
.advgb-count-up-desc {
  margin: 0;
}
@media screen and (max-width: 599px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile).label-flex > .wp-block-column {
    flex-basis: 19% !important;
  }
}
/* Posts slider */
.slick-slide h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5em;
}
.slick-slide .uagb-post__text {
  padding: 0;
}
.slick-slide .uagb-post__excerpt {
  font-size: 0.95rem;
  line-height: 1.2em;
}
.slick-slide .wp-block-button {
  font-size: 0.9em;
  padding: 0.5em 1em;
  margin-top: auto !important;
}
/* sidebar */
body #left-sidebar .inside-left-sidebar aside {
  background-color: #fafafa !important;
  padding: 1.2em;
}
body #menu-menu-categories-sidebar ul {
  margin: 0;
  font-size: 0.9em;
}
body #menu-menu-categories-sidebar a {
  color: #000;
}

body #menu-menu-categories-sidebar > li > a {
  border-bottom: 1px solid #f8b332;
  display: inline-block;
  font-size: 1.4em;
  font-family: "Playfair Display", serif;
  margin: 1em 0 0.5em 0;
}
body #menu-menu-categories-sidebar > li > .sub-menu > li > a {
  display: inline-block;
  font-size: 1.2em;
  color: #f8b332 !important;
  margin: 0.5em 0 0.2em 0;
}

/* mini cart */

.added_to_cart.wc-forward::before {
  content: '\A';
  white-space: pre;
}

#wc-mini-cart {
  right: 0;
  height: auto;
  visibility: visible;
  opacity: 1;
  width: 50vw;
}
.main-navigation #wc-mini-cart a {
  font-size: 1.2rem;
  font-family: "Playfair Display", serif;
}
.main-navigation #wc-mini-cart a img {
  margin-right: 2em !important;
}

/* Gutemberg stuff */
.wp-block-advgb-image {
  min-width: 100%;
  max-width: 100%;
  max-height: 40vh;
}

.wp-block-advgb-image .advgb-image-title {
  pointer-events: none;
  color: rgba(0, 0, 0, 0) !important;
}
.wp-block-advgb-image:hover .advgb-image-title {
  color: rgba(255, 255, 255, 1) !important;
  background-color: #f8b332;
  padding: 1em 2em;
}
.uagb-post-grid .uagb-post__image img {
  height: 300px;
  object-fit: cover;
}

/* Woocommerce Stuff */

.woocommerce-message {
  background-color: #f8b332 !important;
}
.fgf_gift_products_table > tbody > tr > td img {
  width: 50px;
  height: 50px;
}
.woocommerce-notices-wrapper > ul,
.woocommerce-info,
#yith-par-message-cart {
  background-color: #f8b332 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  margin-bottom: 0;
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 2em 4em;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.wc-block-grid__product-onsale,
.onsale {
  border-radius: 50% !important;
  width: 1em;
  height: 1em;
  padding: 1em;
  text-indent: -9000px;
}
.wc-block-grid__product-onsale:before,
.onsale:before {
  content: "\f06b";
  font-family: "Font Awesome 5 Free";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-indent: 0;
}
.wc-block-grid__product-onsale span {
  display: none;
}
/* Products Stuff */
.labels_list {
  display: flex;
  margin: 0;
}
.labels_list li {
  display: inline-block;
  margin: 0;
}

.related.products h2 {
  display: none;
}

.advgb-accordion-header-title {
  font-weight: bold;
}
.woocommerce-Reviews {
  display: flex;
  flex-direction: column;
}
.single-product #comments {
  order: 2;
}
@media screen and (min-width:600px) {
  .postid-43270 .summary.entry-summary {
    height: 1100px;
  }
  .woocommerce div.product div.images {
    margin-bottom:2em!important;
  }
}
/* .first-add-to-cart .woocommerce-variation.single_variation {
  display: none;
}
.first-add-to-cart .woocommerce-product-details__short-description {
  display: none;
}
*/
@media screen and (max-width: 481px) {
  h1.has-background {
    padding: 1.25em 0;
  }
}
/*Typeform stuff*/
.typeform-sidetab {
  position: fixed;
  top: calc(50% - 150px) !important;
  right: 0;
  transition: width 300ms ease-out !important;
  width: 0 !important;
  z-index: 9999;
  height: 0 !important;
}
.typeform-sidetab.open {
  width: 320px !important;
  height: 500px !important;
  top: 50% !important;
}
@media screen and (max-width: 600px) {
  .typeform-sidetab.open {
    transform: translate(0, -50%) !important;
  }
}
.typeform-sidetab-button {
  box-sizing: border-box;
  position: absolute !important;
  top: 300px !important;
  width: 300px !important;
  height: 48px !important;
  padding: 0 20px !important;
  margin: 0;
  cursor: pointer !important;
  background-color: #f8b332 !important;
  border-radius: 4px 4px 0px 0px !important;
  box-shadow: 0px 2px 12px rgb(0 0 0 / 6%), 0px 2px 4px rgb(0 0 0 / 8%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start;
  transform: rotate(-90deg) !important;
  transform-origin: bottom left;
  color: white !important;
  text-decoration: none;
  z-index: 9999;
}
button.typeform-sidetab-button:hover {
  background-color: #ffd233 !important;
}
.typeform-sidetab-button-icon {
  width: 24px !important;
  position: relative !important;
  text-align: center;
  transform: rotate(90deg) scale(0.85) !important;
  left: -8px;
  height: 24px !important;
  font-size: inherit !important;
  margin-right: 0 !important;
}
.typeform-sidetab-button-icon svg {
  height: 24px !important;
  width: 24px !important;
}
.typeform-sidetab-button-icon svg path {
  fill: white !important;
}
.typeform-sidetab-button-text {
  text-decoration: none;
  font-size: 15px !important;
  font-family: Helvetica, Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.woocommerce-Price-amount,
.woocommerce-price-suffix {
  color: #f8b332;
  font-weight: 700;
  font-size: 1.25em;
}
small {
  font-size: 75% !important;
}
/* Accordions header bug fix */
.advgb-accordion-header {
  font-weight: 700;
}
.advgb-accordion-header:hover {
  cursor: pointer;
}

/* Fix videos + galerie single product */
.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
}
.woocommerce-product-gallery {
  order: -2;
}
.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
  width: 60%;
  order: -1;
  flex-basis: 60%;
}
.product-video {
  order: -2;
  width: 35%;
  flex-basis: 35%;
  position: absolute;
  top: 550px;
}
.product-video:nth-of-type(2) {
  top: calc(550px + 250px);
}
.product-video:nth-of-type(3) {
  top: calc(550px + 500px);
}
@media screen and (max-width: 600px) {
  .woocommerce #content div.product div.summary,
  .woocommerce div.product div.summary,
  .woocommerce-page #content div.product div.summary,
  .woocommerce-page div.product div.summary {
    width: 100%;
    order: -1;
    flex-basis: 100%;
  }
  .product-video {
    width: 100%;
    top: 400px;
  }
  #video2 {
    top: calc(400px + 250px) !important;
  }
  #video3 {
    top: calc(400px + 500px) !important;
  }
}

/* Alignement produits sur articles */
.single .wp-block-column .woocommerce ul > li > a > h2 {
  height: 120px;
}

/* Mise en forme couleurs pour frais de port offerts */
.free-shipping, .ports-not-logged {
  background: #f8b332;
}
.free-shipping .amount, .ports-prix {
  color: black;
}
.woocommerce-shipping-totals ~ .ports-not-logged {
  display: none;
}

/* Comments articles */
.single-post #comments {
  display:flex;
  flex-direction: column;
}
.single-post .comments-title {
  order:2;
}
.single-post .comment-list {
  order:3;
}
.single-post #respond {
  order:1;
}

/* Fix plugins problems */
.wc-block-grid__product-link .wc-block-grid__product-image {
  margin: auto !important;
}
.meilleurs_avis .slick-list.draggable {
  overflow-x: hidden;
}