/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/
/* Free shipping badge */
.product.has-free-shipping .product-image,
.product.has-free-shipping .product-images,
.product.has-free-shipping .woocommerce-product-gallery {
  position: relative;
}

body.has-free-shipping .product-images::before {
  content: "Free Shipping" !important;
  position: absolute !important;
  inset: 12px auto auto 12px !important;
  z-index: 30 !important;
  display: inline-block !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  border-radius: 4px;
  background: #1a7f37;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.product.has-free-shipping .product-image::before,
.product.has-free-shipping .product-images::before {
  content: "Free Shipping";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 4px;
  background: #1a7f37;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 767px) {
  .product.has-free-shipping .product-image::before,
  .product.has-free-shipping .product-images::before {
    top: 6px;
    right: 6px;
    padding: 5px 8px;
    font-size: 0.6875rem;
  }
}

/* Free shipping badge: single product (Porto builder layouts) */
body.has-free-shipping .product-images {
  position: relative;
}

body.has-free-shipping .product-images::before {
  content: "Free Shipping";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 6px 10px;
  border-radius: 4px;
  background: #1a7f37;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 767px) {
  body.has-free-shipping .product-images::before {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 0.6875rem;
  }
}

/* Free shipping badge: shop and archive grid */
.product.has-free-shipping .product-image {
  position: relative;
}

.product.has-free-shipping .product-image::before {
  content: "Free Shipping" !important;
  position: absolute !important;
  inset: 10px auto auto 10px !important;
  z-index: 30 !important;
  display: inline-block !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100% - 20px) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 4px;
  background: #1a7f37;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1 !important;
  pointer-events: none;
}

@media (max-width: 767px) {
  .product.has-free-shipping .product-image::before {
    inset: 6px auto auto 6px !important;
    padding: 5px 8px !important;
    font-size: 0.625rem;
  }
}