/*
Theme Name:         kadence-child
Theme URI:          http://childtheme-generator.com/
Description:        kadence-child is a child theme of kadence, created by ChildTheme-Generator.com
Author:             Drop45
Author URI:         http://childtheme-generator.com/
Template:           kadence
Version:            1.0.0
Text Domain:        kadence-child
*/

/* ========== GLOBAL STYLES ========== */
body {
  font-family: 'Montserrat', sans-serif;
}

/* ========== HEADER ========== */
.custom-header {
  padding: 2.1rem 2rem;
  position: relative;
  z-index: 1000;
  background-image: url('/wp-content/themes/kadence-child/src/logo-bg.png');
  background-repeat: no-repeat;
  background-position-x: -50px;
  background-position-y: -45px;
  background-size: 390px auto;
  background-attachment: scroll;
  padding-top: 20px;
}

.header-container {
  max-width: 1290px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  height: 100px !important;
  width: auto;
  display: block;
}

.burger-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 60px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 16px;
  width: 44px;
}

.bar {
  display: block;
  height: 1px;
  background-color: #000;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.burger-button.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-button.open .bar:nth-child(2) {
  opacity: 0;
}

.burger-button.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  font-size: 1.2rem;
  position: relative;
  cursor: pointer;
  color: #000;
  border: 0px !important;
}

.wishlist-icon {
  margin-right: 0px !important;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #E8E0CE;
  color: black;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  line-height: 18px; 
  text-align: center; 
  border-radius: 50%;
  font-weight: 600;
}


.search-form-wrapper {
  display: none;
  position: absolute;
  top: 60px;
  right: 2rem;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #ccc;
  z-index: 9999;
}

.search-toggle{
  padding-left: 0;
  padding-right: 0;
}

.header-logo-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .trp-language-switcher {
    display: none !important;
  }
}

/* Réduit les sous-menus par défaut */
#site-navigation .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1rem;
  list-style: none;
}

/* Quand le parent a "open", afficher le sous-menu */
#site-navigation .menu-item-has-children.open > .sub-menu {
  max-height: 500px;
}

/* Ajoute le bouton +/− */
#site-navigation .menu-item-has-children {
  position: relative;
}

#site-navigation .dropdown-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  color: #000;
}

#site-navigation .dropdown-toggle::after {
  content: "+";
}

#site-navigation .menu-item-has-children.open .dropdown-toggle::after {
  content: "−";
}


/* === Mobile === */
@media (max-width: 550px) {

  .header-left .site-logo {
    display: none;
  }

  .header-logo-mobile {
    display: block;
    text-align: center;
  }

  .header-logo-mobile .site-logo img {
    display: block;
    margin: 0 auto;
    height: 120px; 
    width: auto;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .burger-button {
    display: block;
  }

  .header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .burger-button {
    width: 30px;   
    height: 18px;  
  }
  
  .bar {
    height: 1px;   
  }

  .header-icon {
    font-size: 1rem !important; 
  }

  .header-login {
    font-size: 12px !important; 
  }
}


/* ========== NAVIGATION ========== */
.site-navigation {
  background: #fff;
  position: absolute;
  top: 160px;
  left: 0;
  width: 100%;
  max-width: 450px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
  padding-left: 2rem;
}

@media (max-width: 768px) {
  .site-navigation {
    top: 80px;
  }
}

.site-navigation.open {
  max-height: 100vh;  
  height: 100vh;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
}

.primary-menu li {
  padding: 0.5rem 0;
}

.primary-menu li a {
  color: #000;
  text-decoration: none;
  font-weight: 300;
  display: block;
  font-size: 13px;
}

.header-login {
  font-size: 13px;
  font-weight: 300;
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
}

/* ========== PRODUCT PAGES ========== */
.related.products {
  padding-top: 80px !important;
}

.related.products h2 {
  font-size: 15px;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 40px !important;
}

.product_title {
  font-size: 18px !important;
  font-weight: 300;
}
.woocommerce-Price-amount {
  font-size: 12px !important;
  font-weight: 300;
}

.woocommerce-product-details__short-description {
  font-size: 13px !important;
  font-weight: 300;
}

.button.single_add_to_cart_button {
  font-size: 13px !important;
  font-weight: 300;
  height: 40px;
  line-height: 40px;
  padding: 0 1em;
  text-align: center;
  text-transform: uppercase;
  border: solid 1px rgb(181, 181, 181) !important;
  border-radius: 0 !important;
}

.yith-wcwl-add-to-wishlist-button__label {
  font-weight: 300 !important;
}

.wishlist-icon {
  width: 24px;
  height: 24px;
  fill: red;
  vertical-align: middle;
  margin-right: 6px;
}

.wishlist-title-container h2,
.yith-wcwl-share-title {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 20px;
}

.post-959 {
  box-shadow: none !important;
}

.kb-row-layout-wrap {
  width: 100%;
  min-height: auto !important;   /* laisse la hauteur s’adapter */
  height: auto !important;
}

.wp-block-cover__image-background {
  width: 100%;
  height: auto;
  object-fit: contain !important;  /* ou "cover" si tu veux remplir sans déformation */
}


/* ========== MESSAGES & FORMULAIRES ========== */
.woocommerce-message .wc-forward {
  font-size: 15px !important;
  font-weight: 300;
  padding: 0.5rem 1rem;
  border: solid 1px rgb(142, 142, 142) !important;
  border-radius: 0rem !important;
  text-transform: uppercase;
}

.kadence-form-1142_8bd6a3-8e .kb-form .kadence-blocks-form-field .kb-forms-submit:hover {
  color: #000000;
  background: white;
}

/* ========== PAGES WOOCOMMERCE ========== */
.woocommerce .u-columns h2,
.cart-summary h2,
.cart_totals h2,
.woocommerce-billing-fields h3,
#order_review_heading {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.woocommerce .u-columns p {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
  font-size: 15px !important;
  font-weight: 300;
  border-radius: 0 !important;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  border: solid 1px rgb(142, 142, 142) !important;
}


.woocommerce-privacy-policy-text {
  margin-bottom: 20px;
}

.entry-hero {
  display: none;
}

/* ========== PANIER ========== */
.wc-proceed-to-checkout .checkout-button {
  font-weight: 300;
  border-radius: 0 !important;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  border: solid 1px rgb(142, 142, 142) !important;
}

.drawer-toggle .toggle-close-bar {
  width: 1em;
  height: 0.02em;
  color: black;
}

.cart-empty.woocommerce-info {
  margin-top: 0 !important;
  text-transform: uppercase;
  font-size: 17px !important;
  font-weight: 300 !important;
}

.return-to-shop {
  margin-bottom: 60px !important;
}

.wc-backward{
  text-transform: uppercase;
  font-size: 17px !important;
  font-weight: 300 !important;
  border-radius: 0 !important;
}

.woocommerce-account-fields{
  display: none;
}


/* ========== CARTE CADEAU ========== */
.wc-tabs-wrapper{
  display: none;
}

.gift-cards_form>h3 {
    display: none;
}

.gift-card-content-editor.step-content h5 {
    margin-top: 1em;
    margin-bottom: 1em;
}
