body.single-product form.cart .woocommerce-variation-add-to-cart,
body.single-product form.cart:not(.variations_form):not(.grouped_form) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

/* Product quantity is hidden until the stepper looks right.
   The input stays in the form so Add to cart and Buy now still send quantity 1.
   Restore: delete the display:none rule and uncomment the grid rule below.
   Do not hide cart quantity (.relisse-qty). */
body.single-product form.cart:not(.grouped_form) .quantity {
  display: none !important;
}

/*
body.single-product form.cart .quantity {
  grid-column: 1 / -1;
  float: none !important;
  margin: 0 !important;
}
*/

body.single-product form.cart .single_add_to_cart_button,
body.single-product form.cart .relisse-buy-now {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  min-height: 48px;
  height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 0 !important;
  font-family: Poppins, system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  padding: 0 10px !important;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.single-product form.cart .single_add_to_cart_button,
body.single-product form.cart .single_add_to_cart_button.alt {
  background: #ffffff !important;
  color: #121212 !important;
  border: 1px solid #121212 !important;
}

body.single-product form.cart .single_add_to_cart_button:hover,
body.single-product form.cart .single_add_to_cart_button.alt:hover {
  background: #121212 !important;
  color: #ffffff !important;
  border-color: #121212 !important;
}

body.single-product form.cart .single_add_to_cart_button.disabled,
body.single-product form.cart .single_add_to_cart_button.wc-variation-selection-needed,
body.single-product form.cart .single_add_to_cart_button:disabled {
  opacity: 0.45;
  cursor: default;
}

body.single-product form.cart .single_add_to_cart_button.disabled:hover,
body.single-product form.cart .single_add_to_cart_button.wc-variation-selection-needed:hover,
body.single-product form.cart .single_add_to_cart_button:disabled:hover {
  background: #ffffff !important;
  color: #121212 !important;
  border-color: #121212 !important;
}

body.single-product form.cart .relisse-buy-now {
  background: #b76e79 !important;
  color: #ffffff !important;
  border: 1px solid #b76e79 !important;
}

body.single-product form.cart .relisse-buy-now:hover {
  background: #1f1a1a !important;
  border-color: #1f1a1a !important;
  color: #ffffff !important;
}

body.single-product form.cart .relisse-buy-now.disabled:hover {
  background: #b76e79 !important;
  border-color: #b76e79 !important;
  color: #ffffff !important;
}

body.single-product form.cart .relisse-buy-now.disabled,
body.single-product form.cart .relisse-buy-now:disabled,
body.single-product form.cart .relisse-buy-now.is-adding {
  opacity: 0.45;
}

body.single-product form.cart.is-adding .single_add_to_cart_button,
body.single-product form.cart .single_add_to_cart_button.is-adding {
  opacity: 0.65;
  pointer-events: none;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-message,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-message {
  display: none !important;
}

/* Woolentor sets every .ht-product-price span to 20px/700. Keep € with the digits. */
.ht-product-price span.woocommerce-Price-currencySymbol,
.woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
}

/* Quiet two-up shop archive (same card as Home bestsellers). */
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 22px 10px;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  list-style: none;
  float: none !important;
}
body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after {
  display: none !important;
  content: none !important;
}
body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}
body.woocommerce-shop ul.products li.product a img,
body.post-type-archive-product ul.products li.product a img,
body.tax-product_cat ul.products li.product a img,
body.tax-product_tag ul.products li.product a img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fafafa;
  margin: 0 !important;
}
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
  font-family: Poppins, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #121212 !important;
  padding: 10px 0 0 !important;
  margin: 0 !important;
}
body.woocommerce-shop ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
  font-family: Poppins, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #7a7a7a !important;
  margin: 0 !important;
}
body.woocommerce-shop ul.products li.product .button,
body.woocommerce-shop ul.products li.product .added_to_cart,
body.woocommerce-shop ul.products li.product .onsale,
body.woocommerce-shop ul.products li.product .star-rating,
body.woocommerce-shop ul.products li.product .ast-woo-product-category,
body.woocommerce-shop ul.products li.product .ast-on-card-button,
body.post-type-archive-product ul.products li.product .button,
body.post-type-archive-product ul.products li.product .added_to_cart,
body.post-type-archive-product ul.products li.product .onsale,
body.post-type-archive-product ul.products li.product .star-rating,
body.post-type-archive-product ul.products li.product .ast-woo-product-category,
body.post-type-archive-product ul.products li.product .ast-on-card-button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_cat ul.products li.product .added_to_cart,
body.tax-product_cat ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .star-rating,
body.tax-product_cat ul.products li.product .ast-woo-product-category,
body.tax-product_cat ul.products li.product .ast-on-card-button,
body.tax-product_tag ul.products li.product .button,
body.tax-product_tag ul.products li.product .added_to_cart,
body.tax-product_tag ul.products li.product .onsale,
body.tax-product_tag ul.products li.product .star-rating,
body.tax-product_tag ul.products li.product .ast-woo-product-category,
body.tax-product_tag ul.products li.product .ast-on-card-button {
  display: none !important;
}
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering,
body.post-type-archive-product .woocommerce-result-count,
body.post-type-archive-product .woocommerce-ordering {
  display: none !important;
}

body.woocommerce-shop .woocommerce-pagination,
body.post-type-archive-product .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.tax-product_tag .woocommerce-pagination {
  margin: 36px 0 0;
  display: flex;
  justify-content: center;
}
body.woocommerce-shop .woocommerce-pagination ul.page-numbers,
body.post-type-archive-product .woocommerce-pagination ul.page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers,
body.tax-product_tag .woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-shop .woocommerce-pagination .page-numbers,
body.post-type-archive-product .woocommerce-pagination .page-numbers,
body.tax-product_cat .woocommerce-pagination .page-numbers,
body.tax-product_tag .woocommerce-pagination .page-numbers {
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: Poppins, system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  color: #121212 !important;
  text-decoration: none !important;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 0;
  line-height: 1;
}
body.woocommerce-shop .woocommerce-pagination .page-numbers.current,
body.post-type-archive-product .woocommerce-pagination .page-numbers.current,
body.tax-product_cat .woocommerce-pagination .page-numbers.current,
body.tax-product_tag .woocommerce-pagination .page-numbers.current {
  background: #b76e79;
  border-color: #b76e79;
  color: #ffffff !important;
}

@media (min-width: 768px) {
  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 20px;
  }
  body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
  body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
  }
  body.woocommerce-shop .woocommerce-pagination a.page-numbers:hover,
  body.post-type-archive-product .woocommerce-pagination a.page-numbers:hover,
  body.tax-product_cat .woocommerce-pagination a.page-numbers:hover,
  body.tax-product_tag .woocommerce-pagination a.page-numbers:hover {
    background: #1f1a1a;
    border-color: #1f1a1a;
    color: #ffffff !important;
  }
}

.relisse-snack {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10050;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 32px;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #ebebeb;
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.1);
  padding: 10px 10px 10px 10px;
  font-family: Poppins, system-ui, sans-serif;
  color: #121212;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.relisse-snack.is-on {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.relisse-snack-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #fafafa;
  display: block;
}

.relisse-snack-copy {
  min-width: 0;
}

.relisse-snack-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.relisse-snack-name {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #7a7a7a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.relisse-snack-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  background: #b76e79;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 0;
}

.relisse-snack-cart:hover {
  background: #1f1a1a;
  color: #ffffff !important;
}

.relisse-snack-x {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #7a7a7a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.relisse-snack-thumb[hidden],
.relisse-snack-cart[hidden],
.relisse-snack.is-error .relisse-snack-thumb,
.relisse-snack.is-error .relisse-snack-cart {
  display: none !important;
}

.relisse-snack.is-error {
  grid-template-columns: minmax(0, 1fr) 32px;
}

.relisse-snack.is-error .relisse-snack-copy strong {
  color: #121212;
  font-weight: 400;
}

@keyframes relisse-badge-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}

.relisse-sc a.cart .badge.is-pulse {
  animation: relisse-badge-pop 0.4s ease;
}

/* Description figures: portrait shots must not fill the column. */
body.single-product .woocommerce_product_description {
  font-size: 15px;
  line-height: 1.55;
  color: #121212;
}
body.single-product .woocommerce_product_description h3 {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  margin: 28px 0 12px;
}
body.single-product .woocommerce_product_description h3:first-child {
  margin-top: 8px;
}
body.single-product .woocommerce_product_description p,
body.single-product .woocommerce_product_description li {
  font-size: 15px;
  line-height: 1.55;
}
body.single-product .woocommerce_product_description ul {
  margin: 0 0 8px;
  padding-left: 1.15em;
}
body.single-product .woocommerce_product_description img.relisse-desc-photo,
body.single-product .woocommerce_product_description img[alt="Product photo"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 16px auto 20px !important;
  object-fit: contain;
}

@media (min-width: 768px) {
  body.single-product .woocommerce_product_description h3 {
    font-size: 22px;
  }
  body.single-product .woocommerce_product_description img.relisse-desc-photo,
  body.single-product .woocommerce_product_description img[alt="Product photo"] {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 28px auto 32px !important;
  }
}

@media (min-width: 768px) {
  .relisse-snack {
    left: 50%;
    right: auto;
    width: min(460px, calc(100% - 32px));
    transform: translate(-50%, 120%);
  }

  .relisse-snack.is-on {
    transform: translate(-50%, 0);
  }
}
