:root {
  --pagination-border-radius: 0;
}

/** Product template **/

.brandy-product-template__inner-group {
  position: relative;
  overflow: hidden;
}

li.product
  .brandy-product-template__inner-group
  [data-block-name="woocommerce/product-image"]
  img {
  transition: all 0.4s ease-in-out;
}

li.product
  .brandy-product-template__inner-group
  [data-block-name="woocommerce/product-image"]
  a {
  position: relative;
  display: flex;
}

li.product
  .brandy-product-template__inner-group
  [data-block-name="woocommerce/product-image"]
  a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1229400d;
  opacity: 0;
  visibility: hidden;
  transition: all ease-in-out 0.4s;
}

.brandy-product-template__inner-group .brandy-product-template__content-group {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.brandy-product-template__inner-group .brandy-product-template__actions-group {
  position: absolute;
  bottom: 0;
  right: 0;
  transition: all ease-in-out 0.4s;
}

.brandy-product-template__inner-group
  .brandy-product-template__actions-group:not(.block-editor-block-list__block) {
  transform: translateY(calc(100% - 65px));
}

li.product
  .brandy-product-template__inner-group
  .brandy-product-template__actions-group:not(.block-editor-block-list__block)
  > [data-block-name="woocommerce/product-button"] {
  order: -1;
}

.brandy-product-template__inner-group
  .brandy-product-template__actions-group:not(.block-editor-block-list__block)
  > *:not([data-block-name="woocommerce/product-button"]) {
  opacity: 0;
  visibility: hidden;
  transition: all ease-in-out 0.4s;
}

li.product:hover
  .brandy-product-template__inner-group
  [data-block-name="woocommerce/product-image"]
  a::after {
  opacity: 1;
  visibility: visible;
}

li.product:hover
  .brandy-product-template__inner-group
  .brandy-product-template__actions-group {
  transform: translateY(0px);
}

li.product:hover
  .brandy-product-template__inner-group
  .brandy-product-template__actions-group:not(.block-editor-block-list__block)
  > *:not([data-block-name="woocommerce/product-button"]) {
  opacity: 1;
  visibility: visible;
}

li.product:hover
  .brandy-product-template__inner-group
  .brandy-product-template__actions-group:not(.block-editor-block-list__block)
  > [data-block-name="woocommerce/product-button"] {
  order: unset;
}

@media screen and (max-width: 1000px) {
  [data-block-name="woocommerce/product-template"].is-layout-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 479px) {
  [data-block-name="woocommerce/product-template"].is-layout-flow {
    grid-template-columns: 1fr !important;
  }
}
