/**
 * Theme Name: Olja Einfalt
 * Theme URI: http://reytheme.com/
 * Description: This is a child theme of Rey.
 * Author: Marius H.
 * Author URI:  https://twitter.com/mariushoria
 * Template: rey
 * Version: 1.0.0
 * License: General Public License
 * License URI: http://www.gnu.org/licenses/gpl.html
 * Text Domain: rey-child
 */

/*Home header fixes*/
.home[data-elementor-device-mode="mobile"] .rey-siteHeader .elementor-element-populated{
    justify-content: space-between;
    padding-right: 2rem;
}

.home[data-elementor-device-mode="mobile"] .rey-siteHeader .elementor-widget-reycore-header-logo{
    max-width: 100px;
}

.home[data-elementor-device-mode="mobile"] .rey-siteHeader .elementor-widget-reycore-header-logo img{
    height: auto !important;
}
.home[data-elementor-device-mode="mobile"] .rey-siteHeader .elementor-widget-reycore-header-cart,
.home[data-elementor-device-mode="mobile"] .rey-siteHeader .elementor-widget-reycore-header-account,
.home[data-elementor-device-mode="mobile"] .rey-siteHeader .elementor-widget-reycore-header-search{
    display: none;
}


/*End Home header fixes*/
@media screen and (min-width: 1025px){
.product-template-default .woocommerce-product-gallery.woocommerce-product-gallery--with-images.woocommerce-product-gallery--vertical,
 .product-template-default .summary.entry-summary{
     padding-top: calc( var(--woocommerce-fullscreen-top-padding) *1.5 ) !important;
 }

.product-template-default .pdp--fullscreen .woocommerce-product-gallery .__thumbs-wrapper
 {
     top: calc( var(--woocommerce-fullscreen-top-padding) *1.5 ) !important;
 }
}


/* Force crop on category tiles in Rey even when --uncropped is present */
li.product-category.product {
  position: relative;
}

/* Make the clickable wrapper a fixed ratio box */
li.product-category.product  a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;           /* change to 4/5, 3/4, etc. */
  overflow: hidden;
}

li.product-category.product a:before {
    width: 100%;
    height: 100%;
    left: 0;
    content: "";
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    z-index: 1;              
}

li.product-category.product h2{
    position: absolute;
    z-index: 2;
    color: #fff;
    padding: 0 1.5rem;
    font-size: 1.8rem;
    top: 50%;
      left: 0; 
      right: 0;
      transform: translateY(-50%);
}

/* Make the image fill and crop */
li.product-category.product  a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ul.products li.grid-break {
  content: '';
  display: block;
  /*grid-column: 1 / -1;*/
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
}


