/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Description: Thème enfant Astra
 Author: Ton Nom
 Author URI: https://puku1025.odns.fr/
 Template: astra
 Version: 1.0.0
*/

*{
  font-size: 16px;
}

html, body {
  height: 100%;
  margin: 0;
}

#page{
  background: #EDEFEF;

}

#page.page-id-18 {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-id-18 #content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-id-18 #content {
    background-image: url('../astra-child/img/background.jpg');
    background-size: cover;      /* couvre tout l’écran */
    background-position: center; /* centre l’image */
    background-repeat: no-repeat; /* pas de répétition */
    display: flex;
    justify-content: flex-end;
}


/* ----------------------- NAVBAR -------------------------  */
/* Exemple pour ajouter une icône panier sur le lien menu */
.menu-item.menu-icon-cart > a::before {
  font-family: "Font Awesome 6 Free"; /* Font Awesome 6 */
  font-weight: 900; /* nécessaire pour les icônes solides */
  content: "\f07a"; /* code unicode de l’icône (shopping-cart) */
  display: inline-block;
  margin-right: 8px; /* espace entre l’icône et le texte */
}

/* @media (max-width: 921px) { */
    #ast-mobile-header nav#ast-mobile-site-navigation ul#ast-hf-mobile-menu li:nth-child(2)::after{
      content: "";
      width: 100%;
      height: 1px;
      background-color: #334155;
    }
    /* body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li{
        flex: 1 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    } */
/* } */




/* ----------------------- HEADER -------------------------  */
header.site-header{
  background: #EDEFEF;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

header.site-header div#ast-desktop-header div.ast-main-header-wrap div.ast-primary-header-bar, header.site-header div#ast-desktop-header div.ast-below-header-wrap div.ast-below-header-bar {
  background: #EDEFEF;
  border-bottom: 1px solid black;
  color: black;
}

section.homepage-section h1{
  font-size: clamp(3.5rem, 0.9rem + 6.4vw, 4.5rem);
  font-weight: 400;
  line-height: 0.9;      /* line-height responsive */
  letter-spacing: -0.08em;
}



/* ------------------------------ SHOP ----------------------------------- */
body.woocommerce-shop .ast-container{
  width: 100%;
}

body.woocommerce-shop .ast-container .shop-page-content{
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group h2{
  /* width: 100%; */
  font-size: clamp(2.5rem, 0.9rem + 5.4vw, 4rem);
  font-weight: 400;
  line-height: 0.9;      /* line-height responsive */
  letter-spacing: -0.06em;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group {
  display: flex;
  flex-direction: column;
  align-items: start;
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group div.category-group-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: justify-between;
  /* background-color: greenyellow; */
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group div.category-group-header a {
  color: black;
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group div.category-group-header a::after {
    font-family: "Font Awesome 6 Free"; /* Font Awesome 6 */
    font-weight: 900; /* nécessaire pour les icônes solides */
    content: "\f061"; /* code unicode de l’icône (shopping-cart) */
    display: inline-block;
    margin-left: 8px; /* espace entre l’icône et le texte */
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group div {
  /* display: flex; */
  width: 100%;
  /* background-color: greenyellow; */
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul {
  margin: 0;
  display: flex;
  justify-content: space-between;
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li{
  margin: 0;
  padding: 0;
  max-width: 250px;
  height: 350px;
}

body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li img{
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 1rem;
  object-position: center;
  object-fit: cover;
}

/* Tablette : 3 produits */
@media (max-width: 1024px) {
    body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li:nth-child(n+5) {
        display: none;
    }
    /* body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li{
        flex: 1 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    } */
}

/* Mobile : 1 produit */
@media (max-width: 768px) {
    body.woocommerce-shop .ast-container .shop-page-content section.category-group div.category-group-header {
    flex-direction: column;
    align-items: start;
    }

    body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li:nth-child(n+2) {
        display: none;
    }
    body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li {
        /* flex: 1 1 100%; */
        max-width: 100%;
        max-height: 600px;
        height: auto;
    }
    body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li div{
        /* flex: 1 1 100%; */
        max-width: 100%;
        height: 100%;
        max-height: 600px;
    }

    body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li div a{
        /* flex: 1 1 100%; */
        max-width: 100%;
        height: 100%;
        max-height: 600px;
    }
    body.woocommerce-shop .ast-container .shop-page-content section.category-group div ul li img{
        /* flex: 1 1 100%; */
        width: 100%;
        height: 100%;
        max-width: 100%;
    }
}



/* ------------------------ PRODUCT CATEGORY PAGE ------------------------  */
/* body.tax-product_cat .site-content{
  background-color: greenyellow;
} */

body.tax-product_cat .site-content .site-main h1{
    font-size: clamp(3.5rem, 0.9rem + 6.4vw, 4.5rem);
  font-weight: 400;
  line-height: 0.9;      /* line-height responsive */
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

body.tax-product_cat .site-content .site-main ul.products li img{
  border-radius: 1rem;
}

body.tax-product_cat .site-content .site-main ul.products li .astra-shop-summary-wrap a.add_to_cart_button{
  /* border-radius: 1rem; */
  background-color: black;
}



/* -------------------- PRODUCT PAGE ----------------------  */
body.single-product .ast-container #primary table.variations th.label{
  text-transform: capitalize;
}

@media (max-width: 1200px) {
    body.single-product .ast-container #primary {
      margin-top: 3rem;
    }
}

/* -------------------- CART ----------------------  */
@media (max-width: 1200px) {
    body.page-id-6 .ast-container #primary {
      margin-top: 3rem;
    }
}


/* -------------------- CHECKOUT ----------------------  */
@media (max-width: 1200px) {
    body.page-id-7 .ast-container #primary {
      margin-top: 3rem;
    }
}