.single-product {
  --wp--style--block-gap: 10px;

  .wc-block-product-gallery-thumbnails__scrollable {
    scrollbar-width: none;
  }
  :where(.wc-block-product-gallery-large-image) .wc-block-components-product-image.wc-block-components-product-image.wc-block-components-product-image--aspect-ratio-auto img{
    object-fit: cover !important;
  }
  .product-details-content {
    margin-inline: auto;
  }

  .wc-block-components-product-sale-badge {
    background: #db0000;
    color: #fff;
    border: none;
    border-radius: 0px;
  }

  .woo-variation-items-wrapper {
    .color-variable-item {
      padding: 0px !important;
      border-radius: 50% !important;
      overflow: hidden;
    }
  }

  .wp-block-woocommerce-add-to-cart-form
    .variations_button
    > .single_add_to_cart_button,
  .wp-block-woocommerce-add-to-cart-form
    form.cart
    > .single_add_to_cart_button {
    grid-column: 2 / 5;
    justify-self: stretch;
  }

  div.wc-block-add-to-cart-form.wc-block-add-to-cart-form--stepper
    form.cart
    div.wc-block-components-quantity-selector.quantity {
    grid-column: 1;
  }

  .wc-block-components-quantity-selector__button--plus {
    font-size: 20px;
    line-height: 0;
  }

  .wc-block-components-quantity-selector {
    border-radius: 0px;
    padding: 10px 0px;
  }

  div.wc-block-add-to-cart-form.wc-block-add-to-cart-form--stepper
    form.cart
    div.wc-block-components-quantity-selector.quantity {
    background-color: transparent;
  }

  .wc-block-components-quantity-selector
    input.wc-block-components-quantity-selector__input {
    border-right: 1px solid currentColor !important;
    border-left: 1px solid currentColor !important;
    margin: 3px 0px;
  }

  table.variations {
    margin: 0px !important;
  }

  form.cart :is(.single_add_to_cart_button, .quantity) {
    height: 48px !important;
  }

  form.cart .single_add_to_cart_button {
    padding: 0px;
    transition: background-color 0.15s ease-in-out;
  }

  .rating {
    color: var(--wp--preset--color--accent-5);
  }

  .wc-block-components-product-rating__stars {
    letter-spacing: 4px;
    width: 125px;
    font-size: 20px;
  }

  [data-block-name="woocommerce/product-stock-indicator"] {
    flex-shrink: 0;
  }

  .add-to-cart-form .stock {
    display: none;
  }
  .woocommerce p.stars a::before,
  .woocommerce .star-rating::before,
  span::before {
    color: var(--wp--preset--color--accent-5);
  }
  .woocommerce .star-rating {
    float: none;
    margin-bottom: 10px;
  }
  .comment-reply-title {
    margin-bottom: 10px;
  }

  .woo-variation-swatches
    .variable-items-wrapper
    .variable-item:not(.radio-variable-item).selected,
  .woo-variation-swatches
    .variable-items-wrapper
    .variable-item:not(.radio-variable-item).selected:hover {
    box-shadow: none;
    border: 1px solid var(--wp--preset--color--accent-5);
  }

  .woocommerce-product-attributes-item__label {
    text-align: start;
  }

  .comment-form-rating {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
  }

  .woocommerce .woocommerce-Reviews #comments {
    margin-bottom: 10px;
  }

  #reply-title {
    margin-bottom: 10px;
  }

  #comment-form-rating-label {
    margin-bottom: 10px;
  }

  .wp-block-woocommerce-add-to-cart-form .variations_button > :not(.quantity),
  .wp-block-woocommerce-add-to-cart-form form.cart > :not(.quantity) {
    grid-column: 2 / 4;
  }

  @media (max-width: 768px) {
    .comment-form-author, .comment-form-email{
      width: 100% !important;
      margin: 0px !important;
    }
    .wc-block-components-product-rating__stars {
      letter-spacing: 4px;
      width: 99px;
      font-size: 15px;
    }

    .wp-block-woocommerce-add-to-cart-form .variations_button,
    .wp-block-woocommerce-add-to-cart-form form.cart {
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-width: 500px;
    }

    .quantity.wc-block-components-quantity-selector {
      max-width: 157px;
    }

    .woocommerce div.product form.cart {
      margin-bottom: 1em;
    }

    .wp-block-woocommerce-add-to-cart-form
      .single_add_to_cart_button.button.wp-element-button {
      margin-top: 16px;
    }
  }

  .reviews-and-stock:not(:has(*)) {
    display: none;
  }
}

.woocommerce table.shop_attributes {
  border-top: none !important;
}

/* Hide related products if empty */
.related-products-wrapper:has(.wc-block-grid__products:empty) {
  display: none;
}

/* Hide Woo empty blocks */
.wc-block-grid__products:empty {
  display: none;
}

/* Hide empty product meta */
.wp-block-woocommerce-product-meta:empty {
  display: none;
}

.reviews-and-stock:not(:has(*)) {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0px !important;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  border: none;
  padding-top: 0px !important;
  padding-left: 0px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}
.woocommerce #review_form #respond textarea, .comment-form-author input {
  background: transparent;
}

.tabs.wc-tab {
  padding: 0px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  padding-block: clamp(8px, 12px, 20px) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  padding-inline-start: clamp(8px, 12px, 20px) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:first-child {
  padding-block: clamp(8px, 12px, 20px) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:first-child {
  padding-inline-start: 6px !important;
}

.description_tab {
  border-bottom: 1px solid var(--wp--preset--color--accent-4) !important;
}
.single_add_to_cart_button:hover {
  background-color: color-mix(
    in srgb,
    var(--wp--preset--color--contrast),
    var(--wp--preset--color--accent-5) 90%
  );
}
.outofstock .single_add_to_cart_button {
  background-color: var(--wp--preset--color--accent-4);
}

.tabs.wc-tabs li:first-child a {
  padding-inline-start: 0px !important;
}

.tabs.wc-tabs li.active {
  border: none !important;
  color: var(--wp--preset--color--base);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active) a {
  color: var(--wp--preset--color--accent-4) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}

html body ul.tabs.wc-tabs {
  margin: 0px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--wp--preset--color--accent-4) !important;
  padding: 0px !important;
}
.comment-form .wp-block-button__link.wp-element-button {
  min-width: 132px;
  border-radius: 0px;
}
.wc-tabs-wrapper {
  margin-top: 16px !important;
}
#comments {
  border-bottom: 1px solid var(--wp--preset--color--accent-4);
}
.wc-tabs-wrapper .commentlist {
  padding: 0px;
}
.woocommerce-Reviews-title,
#tab-additional_information h2 {
  margin: 24px 0;
  font-size: var(--wp--preset--font-size--medium) !important;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text p {
  margin: 0px;
}
.comment-form-rating > * {
  margin: 0px;
}
.comment-form {
  margin-top: 10px;
}

#comment-form-rating-label {
  margin: 0px;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  margin: 0 0 0 65px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta {
  font-size: 16px;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta time {
  color: var(--wp--preset--color--accent-4);
}
.woocommerce #reviews #comments ol.commentlist li .comment-text > * {
  margin: 0 !important;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
  height: 47px !important;
  width: 47px !important;
  border-radius: 50% !important;
  padding: 0px !important;
}
.comment-form-author{
  margin-inline-end:24px !important;
  margin-bottom:24px !important;
}
.comment-form-author, .comment-form-email{
  display: inline-flex !important;
  flex-direction: column;
  width: 49% !important;
}
.comment-form-author input, .comment-form-email input{
    height: 48px !important;
    background: transparent;
    border: 1px solid var(--wp--preset--color--accent-4) !important;
    appearance: none;
    box-shadow: none !important;
    width: 100% !important;
}
input#wp-comment-cookies-consent{
    appearance: none !important;
    height: 16px;
    width: 16px !important;
    background-color: transparent !important;
    border: 1px solid var(--wp--preset--color--contrast) !important;
    flex-shrink: 0;
}
.comment-form-cookies-consent{
  display: flex ;
  gap: 8px ;
}
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce input.button{
  transition: background-color 0.15s ease-in-out;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce input.button:hover{
  opacity: 1;
  background: var(--wp--preset--color--accent-5) !important;
  color: var(--wp--preset--color--base) !important;
}

