/* Radios Oui/Non en ligne uniquement pour notre champ */
.immwoo-inline-radio .woocommerce-input-wrapper {
    display: flex;
    gap: 16px;
    align-items: baseline;
  }
  
  .immwoo-inline-radio .woocommerce-input-wrapper label {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
  }

#immwoo_adhesion_for_me_field .woocommerce-input-wrapper .required,
#immwoo_adhesion_for_me_field .woocommerce-input-wrapper abbr.required {
  display: none !important;
}

/* Shop thumbnails: avoid cropping, keep image fully visible */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
  object-fit: contain !important;
  height: auto !important;
  width: 100% !important;
}

/* Woo Blocks product grid */
.wc-block-components-product-image img,
.wc-block-grid__product-image img {
  object-fit: contain !important;
}

/* Product collection cards (front) */
body .wp-block-woocommerce-product-collection .wc-block-product-template {
  gap: 24px !important;
}

body .wp-block-woocommerce-product-collection .wc-block-product {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 0 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

body .wp-block-woocommerce-product-collection .wc-block-components-product-image {
  background: #f3f4f6 !important;
  border-radius: 12px 12px 0 0 !important;
  overflow: hidden !important;
  padding: 12px !important;
  aspect-ratio: auto !important;
}

body .wp-block-woocommerce-product-collection .wc-block-components-product-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 220px !important;
  object-fit: contain !important;
  transition: transform 160ms ease !important;
}

body .wp-block-woocommerce-product-collection .wc-block-components-product-image:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

body
  .wp-block-woocommerce-product-collection
  .wc-block-components-product-image
  a:focus,
body
  .wp-block-woocommerce-product-collection
  .wc-block-components-product-image
  a:focus-visible,
body
  .wp-block-woocommerce-product-collection
  .wc-block-components-product-image
  a:active {
  outline: none !important;
  box-shadow: none !important;
}

body
  .wp-block-woocommerce-product-collection
  .wc-block-product:hover
  .wc-block-components-product-image
  img {
  transform: scale(1.03) !important;
}

body .wp-block-woocommerce-product-collection .wp-block-post-title,
body .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price,
body .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button,
body .wp-block-woocommerce-product-collection .immwoo-price-list {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body .wp-block-woocommerce-product-collection .wp-block-post-title {
  margin: 12px 0 4px !important;
  text-align: center !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

body .wp-block-woocommerce-product-collection .immwoo-issue-meta {
  display: block !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  margin-top: 2px !important;
}

body.single-product .wp-block-woocommerce-product-collection .wp-block-post-title,
body.single-product .wp-block-woocommerce-product-collection h3.wp-block-post-title {
  font-size: 16px !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}

body.single-product
  .wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"]
  .wp-block-post-title,
body.single-product
  .wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"]
  h3.wp-block-post-title {
  font-size: 14px !important;
  line-height: 1.3 !important;
}

body .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price {
  text-align: center !important;
  margin-bottom: 8px !important;
}

body .wp-block-woocommerce-product-collection .wc-block-components-product-price {
  font-weight: 600 !important;
  color: #111827 !important;
  font-size: 14px !important;
}

body .wp-block-woocommerce-product-collection .woocommerce-info,
body .wp-block-woocommerce-product-collection .woocommerce-info a {
  text-align: center !important;
}

body .wp-block-woocommerce-product-collection .woocommerce-info a,
body .wp-block-woocommerce-product-collection .woocommerce-info a.button {
  display: inline-block !important;
  padding: 10px 16px !important;
  background: #111827 !important;
  color: #fff !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

body .wp-block-woocommerce-product-collection .immwoo-login-to-buy {
  display: inline-block !important;
  padding: 10px 16px !important;
  background: #111827;
  color: #fff !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
  margin-bottom: 15px !important;
}

body .wp-block-woocommerce-product-collection .immwoo-login-to-buy {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

body .wp-block-woocommerce-product-collection .immwoo-price-list {
  border: 1px solid #c7e6d2 !important;
  background: #eefaf3 !important;
  color: #1f7a4a !important;
  border-radius: 10px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  margin-top: 2px !important;
  margin-bottom: 8px !important;
  margin-left: 16px !important;
  margin-right: 16px !important;
  font-size: 13px !important;
}

body .wp-block-woocommerce-product-collection .immwoo-price-list__title {
  color: #1f7a4a !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body .wp-block-woocommerce-product-collection .immwoo-price-list__title::before {
  content: "" !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231f7a4a'><path d='M3 3h7l7 7-7 7-7-7V3z'/><circle cx='7' cy='7' r='1.5' fill='%23ffffff'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
}

/* Single product layout tweaks */
body.single-product .wp-block-columns > .wp-block-column:first-child {
  flex-basis: 380px !important;
  max-width: 380px !important;
}

body.single-product .woocommerce-product-gallery {
  max-width: 380px;
}

body.single-product .woocommerce-product-gallery__wrapper img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

body.single-product .wp-block-post-title {
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
}

body.single-product .immwoo-issue-meta {
  display: block !important;
  font-size: 16px !important;
  color: #6b7280 !important;
  margin-top: 2px !important;
}

body.single-product .wp-block-woocommerce-product-price .wc-block-components-product-price {
  font-size: 18px !important;
  font-weight: 600 !important;
}

body.single-product .variations label,
body.single-product .variations select,
body.single-product .single_add_to_cart_button {
  font-size: 14px !important;
}

body.single-product .immwoo-price-list {
  border: 1px solid #c7e6d2 !important;
  background: #eefaf3 !important;
  color: #1f7a4a !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin: 10px 0 16px !important;
  font-size: 13px !important;
  display: block !important;
  width: 300px !important;
  max-width: 100% !important;
}

@media (max-width: 782px) {
  body.single-product .immwoo-price-list {
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

body.single-product .immwoo-price-list__title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
}

body.single-product .immwoo-price-list__title::before {
  content: "" !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231f7a4a'><path d='M3 3h7l7 7-7 7-7-7V3z'/><circle cx='7' cy='7' r='1.5' fill='%23ffffff'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
}

body .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button {
  margin-top: auto !important;
  padding-bottom: 0 !important;
}

body .wp-block-woocommerce-product-collection .wc-block-components-product-button__button,
body .wp-block-woocommerce-product-collection .wp-block-button__link {
  width: 100% !important;
  justify-content: center !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
}

body.single-product
  .wp-block-woocommerce-product-collection[data-collection="woocommerce/product-collection/related"]
  .wp-block-woocommerce-product-button {
  margin-bottom: 15px !important;
}

@media (min-width: 1024px) {
  .wc-block-grid.has-4-columns,
  .wc-block-grid.has-3-columns,
  .wc-block-grid {
    --wc-block-grid-columns: 4;
  }

  .wc-block-grid__products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .woocommerce ul.products li.product {
    width: 25%;
  }
}
