/*
Theme Name:     Hello Elementor Child
Theme URI:      
Description:    Hello-elementor child theme.
Author:         Lawrence
Author URI:     
Template:       hello-elementor
Version:        0.1.0
*/

/* ===== Product grids (shop, categories, related products, block grids) ===== */
/* Uniform 220px image box; the whole image is scaled to fit, never cropped or stretched */
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  height: auto !important;
  object-fit: contain;
  margin: 0 0 12px;
}

/* Block product grids (e.g. empty-cart "New in store"): beat WooCommerce's more specific rule */
.wc-block-grid .wc-block-grid__product .wc-block-grid__product-image img {
  max-width: 220px !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto 12px;
}

/* ===== Sticky footer: footer sits at the bottom of the window on short pages ===== */
body {
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  display: flex;
  flex-direction: column;
}
body > main#content { flex: 1 0 auto; width: 100%; }
body > .elementor-location-header,
body > .elementor-location-footer { flex-shrink: 0; width: 100%; }

/* ===== Owner's former Additional CSS (moved from Customizer into the theme, 2026-11-26) ===== */
/* Prevent sideways scrolling. 'clip' keeps position:sticky working; 'hidden' is the fallback. */
html,
body {
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Product gallery: active slide fills its frame (original had a typo: "100%!") */
.woocommerce-product-gallery__image.flex-active-slide {
  height: auto;
  width: 100%;
}

/* Body text font (Adobe Fonts "ivyepic") */
p {
  font-family: "ivyepic", sans-serif !important;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0px !important;
}
/* Removed: product image 158.88px rule (replaced by the 220px product-grid rule above) */
