/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Accueil: stabilise les diapositives du carrousel sur mobile. */

/* Accueil: empile les sections à deux colonnes sur petit écran. */

/* Accueil mobile: aligne les boutons des cartes et protège les titres des flèches. */
@media (max-width: 768px) {
  .elementor-15 .elementor-widget-wd_products .wd-carousel-wrap {
    align-items: stretch !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-carousel-item {
    display: flex !important;
    height: auto !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-product,
  .elementor-15 .elementor-widget-wd_products .product-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .elementor-15 .elementor-widget-wd_products .product-wrapper {
    flex: 1 1 auto !important;
  }

  .elementor-15 .elementor-widget-wd_products .product-element-bottom {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .elementor-15 .elementor-widget-wd_products .wrap-price {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    margin-top: 12px !important;
  }

  .elementor-15 .elementor-widget-wd_products .variations_form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
  }

  .elementor-15 .elementor-widget-wd_products .vi-wpvs-variation-wrap-wrap {
    display: block !important;
  }

  .elementor-15 .elementor-widget-wd_products .vi-wpvs-variation-wrap {
    display: none !important;
  }

  .elementor-15 .elementor-widget-wd_products .vi-wpvs-select-attribute {
    display: block !important;
  }

  .elementor-15 .elementor-widget-wd_products .vi-wpvs-select-attribute select {
    display: block !important;
    width: 100% !important;
  }

  .elementor-15 .elementor-widget-wd_products .single_variation_wrap {
    margin-top: auto !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-product-footer {
    margin-top: auto !important;
  }

  .elementor-15 .elementor-element-81c3d77 {
    padding-right: 96px !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-el-title {
    max-width: calc(100% - 96px) !important;
    line-height: 1.2 !important;
  }

  .main-page-wrapper {
    padding-bottom: 88px !important;
  }
}
@media (max-width: 768px) {
  .elementor-15 .elementor-element-208ec4a {
    --margin-top: -72px !important;
    margin-top: -72px !important;
    margin-bottom: 0 !important;
  }

  .elementor-15 #slider-128 .wd-slide {
    height: calc(100vh - 126px) !important;
    height: calc(100svh - 126px) !important;
    min-height: calc(100vh - 126px) !important;
    min-height: calc(100svh - 126px) !important;
  }

  .elementor-15 .elementor-element-4eb72ca {
    --flex-direction: column !important;
    --align-items: stretch !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 22px !important;
  }

  .elementor-15 .elementor-element-ca24496,
  .elementor-15 .elementor-element-b9b0e67 {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }

  .elementor-15 .elementor-element-3f24020 {
    width: 100% !important;
    max-width: 320px !important;
    margin-inline: auto !important;
  }

  .elementor-15 .elementor-element-5661db2 {
    gap: 10px !important;
  }

  .elementor-15 .elementor-element-5661db2 .wd-button-wrapper,
  .elementor-15 .elementor-element-5661db2 .wd-button-wrapper a {
    width: 100% !important;
  }

  .elementor-15 .elementor-element-9d2568f {
    --flex-direction: column !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .elementor-15 .elementor-element-0dd10ca,
  .elementor-15 .elementor-element-89e7aa7 {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }
}
@media (max-width: 768px) {
  #slide-1448 .wd-slide-container,
  #slide-1480 .wd-slide-container {
    align-items: flex-end !important;
    box-sizing: border-box;
    padding: 0 20px 30px !important;
  }

  #slide-1448 .wd-slide-inner,
  #slide-1480 .wd-slide-inner {
    width: 100%;
    max-width: 100% !important;
  }

  #slide-1448 .elementor-element-af2bcf1,
  #slide-1480 .elementor-element-af2bcf1 {
    max-width: 100%;
    gap: 8px !important;
  }

  #slide-1448 .elementor-element-84dab14 .title,
  #slide-1448 .elementor-element-dee3190 .title,
  #slide-1480 .elementor-element-84dab14 .title,
  #slide-1480 .elementor-element-dee3190 .title {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  #slide-1448 .elementor-element-d1eff3d,
  #slide-1480 .elementor-element-d1eff3d {
    max-width: 110px !important;
    width: 110px !important;
    --container-widget-width: 110px;
  }

  #slide-1448 .elementor-element-22367ff,
  #slide-1480 .elementor-element-22367ff {
    flex-basis: 100%;
    max-width: 100%;
    width: 100%;
    gap: 10px;
  }

  #slide-1448 .elementor-element-b3135b5,
  #slide-1480 .elementor-element-b3135b5 {
    max-width: 100% !important;
    width: 100% !important;
    --container-widget-width: 100%;
  }

  #slide-1448 .elementor-element-b3135b5 p,
  #slide-1480 .elementor-element-b3135b5 p {
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
}

/* Sur mobile, superpose le texte de la première diapositive à la photo. */
@media (max-width: 768px) {
  .elementor-15 #slide-1410 .wd-slide-bg {
    height: 100% !important;
    background-color: transparent !important;
    background-image: url("https://www.petit-felin.com/wp-content/uploads/2026/10/petit-felin-hero-chat-cares-mobile.jpg") !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  .elementor-15 #slide-1410 .wd-slide-bg img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 0 !important;
    top: 0 !important;
  }

  .elementor-15 #slide-1410 .wd-slide-container {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    box-sizing: border-box !important;
    padding: 0 20px 28px !important;
  }

  .elementor-15 #slide-1410 .wd-slide-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-15 #slide-1410 .elementor-element-af2bcf1 {
    gap: 8px !important;
    padding: 16px 18px !important;
    border-radius: 20px;
    background: transparent !important;
    backdrop-filter: none !important;
  }
}

/* Sur mobile, garde visible le bouton des produits à options. */
@media (max-width: 768px) {
  .elementor-15 .elementor-widget-wd_products .wd-product.product-type-variable .variations_form {
    display: none !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-product.product-type-variable .wd-product-footer .wd-add-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-product.product-type-variable .wd-product-footer .wd-add-btn a {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }
}

/* Catalogue: masque les choix de variations dans les cartes produit. */
body.archive .wd-product .vi-wpvs-variation-wrap-wrap,
body.archive .wd-product .vi-wpvs-variation-wrap,
body.archive .wd-product .vi-wpvs-select-attribute,
body.archive .wd-product .wd-swatches-product,
body.archive .wd-product .wd-product-variations,
body.archive .wd-product .variations_form .variations {
  display: none !important;
}

/* Fiches produit : galerie, résumé d'achat et informations bien séparés. */
body.single-product .product-image-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}

body.single-product .product-image-summary > .product-images,
body.single-product .product-image-summary > .summary {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
}

body.single-product .summary .product_title {
  margin: 0 0 14px;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.15;
}

body.single-product .summary .price {
  margin: 14px 0 20px;
  color: #3b50eb;
  font-size: 26px;
  font-weight: 700;
}

body.single-product .summary .woocommerce-product-details__short-description {
  margin: 0 0 22px;
  line-height: 1.65;
}

body.single-product .summary .variations_form {
  margin: 22px 0;
}

body.single-product .summary .single_add_to_cart_button {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background-color: #3b50eb;
  color: #fff;
  font-weight: 700;
}

body.single-product .woocommerce-tabs {
  margin-top: clamp(36px, 5vw, 64px);
}

body.single-product .woocommerce-Tabs-panel {
  line-height: 1.75;
}

body.single-product .woocommerce-Tabs-panel table {
  width: 100%;
  border-collapse: collapse;
}

body.single-product .woocommerce-Tabs-panel th,
body.single-product .woocommerce-Tabs-panel td {
  padding: 12px 14px;
  border: 1px solid #e4e4e4;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 767px) {
  body.single-product .product-image-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body.single-product .product-image-summary > .product-images,
  body.single-product .product-image-summary > .summary {
    width: 100% !important;
  }

  body.single-product .product-images {
    overflow: hidden;
  }

  body.single-product .summary {
    padding: 0 16px !important;
  }

  body.single-product .summary .product_title {
    font-size: 28px;
  }

  body.single-product .summary .single_add_to_cart_button,
  body.single-product .summary .cart .button {
    width: 100%;
    min-height: 52px;
  }

  body.single-product .woocommerce-tabs {
    margin: 32px 16px 0;
  }

  body.single-product .woocommerce-Tabs-panel table {
    table-layout: fixed;
  }

  body.single-product .woocommerce-Tabs-panel th,
  body.single-product .woocommerce-Tabs-panel td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
  }

  /* Réduit le rail des miniatures pour éviter un grand vide sous l’image. */
  body.single-product .woocommerce-product-gallery .wd-gallery-thumb {
    width: 100% !important;
    max-width: 360px !important;
    height: 78px !important;
    min-height: 0 !important;
    margin: 12px auto 0 !important;
    overflow: hidden !important;
  }

  body.single-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-wrap {
    height: 72px !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  body.single-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-item {
    width: 60px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
  }

  body.single-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-item img {
    display: block;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
  }
}

/* Cartes des catalogues et carrousels : masque les options dans les cartes,
   sans retirer le lien d’achat « Ajouter au panier » / « Choix des options ». */
body.archive .wd-product .variations_form,
.elementor-15 .elementor-widget-wd_products .wd-product .variations_form {
  display: none !important;
}

/* Sur ordinateur, laisse les cartes prendre la hauteur de leur contenu. */
@media (min-width: 769px) {
  .elementor-15 .elementor-widget-wd_products .wd-carousel-wrap {
    align-items: flex-start !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-carousel-item {
    height: auto !important;
    align-self: flex-start !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-product,
  .elementor-15 .elementor-widget-wd_products .product-wrapper {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }

  .elementor-15 .elementor-widget-wd_products .product-element-bottom {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 1 auto !important;
  }

  .elementor-15 .elementor-widget-wd_products .wrap-price {
    flex: 0 0 auto !important;
    margin-top: 12px !important;
  }

  .elementor-15 .elementor-widget-wd_products .wd-product-footer {
    margin-top: 12px !important;
  }
}