/*
Theme Name: Regaud
Theme URI: https://nouveausite-foie-gras-regaud.fr/
Description: Thème enfant Astra pour Maison Regaud
Author: Claire
Template: astra
Version: 1.0
Text Domain: regaud
*/

/* HOME : suppression header */
.home header,
.home #masthead,
.home .site-header,
.home .ast-header-break-point {
    display:none !important;
}

/* HOME : aucun espace haut */
.home.admin-bar {
    margin-top:0 !important;
}

.home .site-content,
.home main {
    margin-top:0 !important;
    padding-top:0 !important;
}

/* HOME — hero photo plein écran */
.home #photo_home {
    min-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Supprime les marges Astra autour du contenu */
.home .ast-container,
.home .site-content .ast-container,
.home .content-area,
.home .site-main,
.home .entry-content,
.home .elementor,
.home .elementor-3610 {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Supprime le titre Home */
.home .entry-header {
    display: none !important;
}

/* =========================
BOUTON 1 : PRINCIPAL
========================= */
.bout1 .elementor-button,
.bout1 a,
a.bout1{
    font-family:'Cormorant Garamond', serif !important;
    font-size:22px !important;
    font-weight:600 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
    text-decoration:none !important;

    color:#e8bf87 !important;
    background:#a70a2d !important;
    border:1px solid #e8bf87 !important;

    padding:17px 34px !important;
    border-radius:5px !important;
}

.bout1 .elementor-button:hover,
.bout1 a:hover,
a.bout1:hover{
    color:#a70a2d !important;
    background:#e8bf87 !important;
    border-color:#a70a2d !important;
}

/* =========================
BOUTON 2 : SECONDAIRE
========================= */
.bout2 .elementor-button,
.bout2 a,
a.bout2{
    font-family:'Cormorant Garamond', serif !important;
    font-size:22px !important;
    font-weight:600 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
    text-decoration:none !important;

    color:#a70a2d !important;
    background:#e8bf87 !important;
    border:1px solid #a70a2d !important;

    padding:17px 34px !important;
    border-radius:5px !important;
}

.bout2 .elementor-button:hover,
.bout2 a:hover,
a.bout2:hover{
    color:#e8bf87 !important;
    background:#a70a2d !important;
    border-color:#e8bf87 !important;
}


#photo_home h3{
	color: #FAE9CB!important;
font-family: "Manrope", Sans-serif!important;
font-size:1.2em!important;
font-weight:400;
}
.epais{
	font-weight:400;
}

.bout1 .elementor-button{
	fill: #e8bf87!important;
}
.bout2 .elementor-button{
	fill: #a70a2d!important;
}
.bout_bottom .elementor-icon .e-font-icon-svg{
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.65));
    transition: all 0.3s ease;
}


#photo_home{
  position: relative;
  min-height: 100vh;
}

#photo_home .blocHome_bas{
  position: absolute;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 20;
}

/* Grid catégories Regaud : 2 en haut / 3 dessous */

/* Home catégories Regaud : 2 en haut / 3 en bas */

.elementor-shortcode .woocommerce.columns-3 ul.products.columns-3{
  display:grid !important;
  grid-template-columns:repeat(6,1fr) !important;
  gap:30px !important;
}

.elementor-shortcode .woocommerce.columns-3 ul.products.columns-3 li.product-category{
  width:auto !important;
  float:none !important;
  clear:none !important;
  margin:0 !important;
}

.elementor-shortcode .woocommerce.columns-3 ul.products.columns-3 li.product-category:nth-child(1),
.elementor-shortcode .woocommerce.columns-3 ul.products.columns-3 li.product-category:nth-child(2){
  grid-column:span 3;
}

.elementor-shortcode .woocommerce.columns-3 ul.products.columns-3 li.product-category:nth-child(n+3){
  grid-column:span 2;
}

@media(max-width:768px){
  .elementor-shortcode .woocommerce.columns-3 ul.products.columns-3{
    grid-template-columns:1fr !important;
  }

  .elementor-shortcode .woocommerce.columns-3 ul.products.columns-3 li.product-category{
    grid-column:span 1 !important;
  }
}


/* Boutique Regaud - grille catégories 3 + 2 centrées */

.bloc_accueil_boutique ul.products.columns-3{
  display:grid !important;
  grid-template-columns:repeat(6, 1fr) !important;
  gap:30px !important;
}

.bloc_accueil_boutique ul.products.columns-3 > li.product-category{
  float:none !important;
  clear:none !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  justify-self:stretch !important;
}

/* Ligne 1 : 3 blocs */
.bloc_accueil_boutique ul.products.columns-3 > li.product-category:nth-child(1),
.bloc_accueil_boutique ul.products.columns-3 > li.product-category:nth-child(2),
.bloc_accueil_boutique ul.products.columns-3 > li.product-category:nth-child(3){
  grid-column:span 2 !important;
}

/* Ligne 2 : 2 blocs mêmes dimensions, centrés */
.bloc_accueil_boutique ul.products.columns-3 > li.product-category:nth-child(4){
  grid-column:2 / span 2 !important;
}

.bloc_accueil_boutique ul.products.columns-3 > li.product-category:nth-child(5){
  grid-column:4 / span 2 !important;
}

.bloc_accueil_boutique ul.products.columns-3 > li.product-category a,
.bloc_accueil_boutique ul.products.columns-3 > li.product-category img{
  width:100% !important;
  max-width:100% !important;
}
/* Container boutique sous le header */

.site-content{
  margin-top:-120px;
  padding-top:120px;
  position:relative;
  z-index:1;
}
.main-header-bar {
  background-color: #ffffff00;
}
/* ===== REMONTER LE BLOC PRODUIT ===== */

.single-product #content.site-content {
    position: relative;
    margin-top: -290px;
	padding-top:0!important;
    z-index: 2;
}


.single-product #content.site-content .summary {
	padding-top:50px!important;
}



/* ===== DESCENDRE LE BLOC TEXTE ===== */

.single-product div.product .summary {
    margin-top: 120px;
}

/* ===== SÉCURITÉ OVERFLOW ===== */

.single-product .ast-container,
.single-product .ast-woocommerce-container,
.single-product div.product {
    overflow: visible;
}
/* ===== TITRE PRODUIT ===== */

.single-product .product_title.entry-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.05;
    color: #2f2323;
    margin-bottom: 15px;
    max-width: 600px;
}

/* ===== BOUTON AJOUTER AU PANIER ===== */

.single-product .single_add_to_cart_button.button.alt {
    background: #5f4347 !important;
    color: #f3e7df !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 16px 34px !important;

    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: none !important;
    letter-spacing: 0;

    min-height: 54px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
}

/* ===== HOVER ===== */

.single-product .single_add_to_cart_button.button.alt:hover {
    background: #6d4a50 !important;
    color: #ffffff !important;
}