/*
Theme Name: Envo Shopper Child
Theme URI: https://newplayshop.com
Description: Child theme for Envo Shopper customizations.
Author: Newplayshop
Template: envo-shopper
Version: 1.0.0
Text Domain: envo-shopper-child
*/

/* Remove underline from content/widget/comment links */
.single-entry-summary a,
.comment-body a,
.textwidget a {
  text-decoration: none;
}

.single-head.page-head.no-thumbnail {
  display: none !important;
}

/* Pages: remove inherited top gaps after hiding the native page header */
.page .page-area {
  padding-top: 0;
}

.page .single-entry-summary {
  margin-top: 0;
}

/* Hide empty WooCommerce sidebar */
.woocommerce-page aside#sidebar:not(:has(.widget)) {
  display: none !important;
}

/* Add gap only when sidebar really has widgets */
.woocommerce.post-type-archive-product .row:has(+ aside#sidebar .widget),
.woocommerce.tax-product_cat .row:has(+ aside#sidebar .widget),
.woocommerce.tax-product_tag .row:has(+ aside#sidebar .widget) {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

/* Keep category container (title + sorting + products) away from page edges */
.woocommerce.post-type-archive-product .row,
.woocommerce.tax-product_cat .row,
.woocommerce.tax-product_tag .row {
  padding-left: 25px;
  padding-right: 25px;
}

/* Home products: equal-height columns for section 62883f6 (desktop) */
@media (min-width: 768px) {
  .home-product-section>.elementor-container {
    align-items: stretch;
  }

  .home-product-section>.elementor-container>.elementor-column {
    display: flex;
  }

  .home-product-section>.elementor-container>.elementor-column>.elementor-widget-wrap,
  .home-product-section>.elementor-container>.elementor-column>.elementor-element-populated>.elementor-widget-wrap {
    height: 100%;
    align-content: stretch;
  }

  .home-product-section>.elementor-container>.elementor-column>.elementor-element-populated {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .home-product-full-h>.elementor-element-populated {
    height: 100%;
  }

  .home-product-full-h>.elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .home-product-full-h .elementor-widget-image-carousel {
    flex: 1 1 auto;
    min-height: 0;
  }

  .home-product-full-h .elementor-widget-image-carousel>.elementor-widget-container,
  .home-product-full-h .elementor-widget-image-carousel .elementor-image-carousel-wrapper,
  .home-product-full-h .elementor-widget-image-carousel .swiper-wrapper,
  .home-product-full-h .elementor-widget-image-carousel .swiper-slide,
  .home-product-full-h .elementor-widget-image-carousel .swiper-slide-inner {
    height: 100%;
  }

  .home-product-full-h .elementor-widget-image-carousel .swiper-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
