/* SHM Digital Shop — Kadence + WooCommerce. Version 1.6.0 */
body.shm-digital-shop {
  --shm-forest: #254b42;
  --shm-sage: #59796a;
  --shm-cream: #f7f6f1;
  --shm-text: #263b34;
  --shm-muted: #65776f;
  --shm-line: #e3eae3;
  background: #fdfdfb;
}
body.shm-digital-shop .content-container.site-container,
body.shm-digital-shop .site-container.content-container {
  max-width: 1320px;
}
body.shm-digital-shop .woocommerce-products-header__title.page-title { display: none; }

/* Calm editorial hero with paper illustration (no PDF pages are exposed). */
.shm-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(12px, 3vw, 55px);
  min-height: 460px;
  align-items: center;
  overflow: hidden;
  /* Soft editorial sage wash: no fine-line rings that resemble screen cracks. */
  background:
    radial-gradient(ellipse 72% 62% at 100% 2%, rgba(175, 199, 181, .25) 0%, rgba(175, 199, 181, 0) 78%),
    linear-gradient(118deg, #f0f4ed 0%, #eaf1e9 52%, #e2ece5 100%);
  border: 1px solid #e1e8df;
  border-radius: 26px;
  padding: clamp(28px, 5vw, 65px);
  margin: 14px 0 22px;
}
/* Remove the former 490px outlined-circle decoration (especially visible on phones).
   Disable both pseudo-elements to avoid stray hairlines from earlier CSS. */
body.shm-digital-shop .shm-hero::before,
body.shm-digital-shop .shm-hero::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
}
.shm-hero__copy { position: relative; z-index: 2; }
.shm-eyebrow, .shm-section-kicker, .shm-shop-categories__label {
  color: #456b56; letter-spacing: .16em; font-size: 11px;
  font-weight: 750; line-height: 1.7;
}
.shm-eyebrow { display: flex; gap: 9px; align-items: center; }
.shm-eyebrow__dot { width: 7px; height: 7px; background: #8ba68a; border-radius: 50%; }
.shm-hero h1 {
  color: #263e32; font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 4.7vw, 68px); font-weight: 500;
  letter-spacing: -.055em; line-height: 1.08; margin: 19px 0 18px;
}
.shm-hero h1 em { color: #77927b; font-weight: 400; }
.shm-hero__lead {
  max-width: 560px; color: #354f41; font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55; margin: 0 0 10px;
}
.shm-hero__details { color: #5a6f61; font-size: 14px; line-height: 1.75; max-width: 470px; margin: 0 0 24px; }
.shm-hero__cta {
  display: inline-flex; align-items: center; gap: 27px;
  padding: 14px 21px; border-radius: 10px;
  background: #254b42; color: #fff !important; font-weight: 700;
  font-size: 14px; text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}
.shm-hero__cta:hover, .shm-hero__cta:focus-visible { background: #173a31; transform: translateY(-2px); }
.shm-hero__trust { display: flex; flex-wrap: wrap; gap: 7px 17px; margin-top: 24px; font-size: 12px; color: #466759; }

.shm-hero__art { position: relative; height: 360px; max-width: 450px; width: 100%; margin: auto; }
.shm-art-orbit { position: absolute; background: #d4e0d2; border-radius: 50%; }
.shm-art-orbit--one { width: 260px; height: 260px; left: 13%; top: 12%; }
.shm-art-orbit--two { width: 75px; height: 75px; right: 1%; bottom: 0; background: #cedfcf; }
.shm-paper { background: #fffdfa; border: 1px solid #ecece3; box-shadow: 0 20px 48px rgba(48,75,61,.12); position: absolute; border-radius: 9px; }
.shm-paper--back { width: 205px; height: 265px; right: 2%; top: 26px; transform: rotate(12deg); padding: 30px 22px; }
.shm-paper--front { width: 232px; height: 305px; left: 20%; top: 22px; transform: rotate(-7deg); padding: 24px 23px; }
.shm-paper__top { display: flex; align-items: center; gap: 7px; color: #7d9a83; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.shm-paper__mark { background: #83a48c; border-radius: 3px; width: 16px; height: 16px; }
.shm-paper--front strong { font-family: Georgia, serif; display: block; margin-top: 33px; font-size: 25px; color: #314d3b; font-weight: 500; line-height: 1.12; }
.shm-paper__moods { display: flex; gap: 7px; margin: 18px 0 25px; }
.shm-paper__moods i { width: 24px; height: 24px; border-radius: 50%; background: #e5ede5; border: 1px solid #cbdccc; }
.shm-paper__moods i:nth-child(3) { background: #a3bea5; }
.shm-paper__line, .shm-paper__heading { display: block; height: 7px; border-radius: 8px; background: #e9eee8; margin-top: 11px; width: 100%; }
.shm-paper__line.short { width: 60%; }
.shm-paper__heading { background: #c5d8c6; height: 17px; margin: 0 0 28px; width: 77%; }
.shm-paper__footer { font-size: 7px; letter-spacing: .13em; color: #9aaba0; margin-top: 29px; }
.shm-art-sticker { position: absolute; right: -4%; bottom: 34px; background: #faf9f0; color: #3c6350; border: 1px solid #e5e6d8; border-radius: 12px; padding: 13px 18px; box-shadow: 0 8px 24px rgba(40,70,51,.12); font-size: 12px; line-height: 1.45; transform: rotate(6deg); }
.shm-art-sticker b { font-size: 13px; }

/* Topic pills */
.shm-shop-categories { padding: 16px 4px 26px; border-bottom: 1px solid var(--shm-line); }
.shm-shop-categories__label { display: block; margin-bottom: 13px; }
.shm-shop-categories__items { display: flex; flex-wrap: wrap; gap: 9px; }
.shm-pill {
  background: #fff; color: #476054 !important; text-decoration: none !important;
  border: 1px solid #dce5da; border-radius: 999px;
  display: inline-flex; align-items: center; min-height: 38px; padding: 8px 17px;
  font-size: 13px; font-weight: 650; transition: all .18s ease;
}
.shm-pill:hover, .shm-pill:focus-visible { border-color: #638573; background: #e9f0e8; }
.shm-pill.is-active { background: #254b42; border-color: #254b42; color: #fff !important; }

/* Section heading */
.shm-shop-section { scroll-margin-top: 100px; }
.shm-shop-section__top { padding: 35px 0 17px; }
.shm-shop-section h2 { color: #263d34; font-family: Georgia, serif; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.03em; margin: 8px 0 5px; font-weight: 500; }
.shm-shop-section p { color: #728078; font-size: 14px; margin: 0; }

/* Keep WooCommerce's functional result count, sorting, pagination and add-to-cart. */
body.shm-digital-shop .woocommerce-result-count,
body.shm-digital-shop .woocommerce-ordering { margin: 12px 0 21px; color: #728078; font-size: 13px; }
body.shm-digital-shop .woocommerce-ordering select { border: 1px solid #dce5dd; background: #fff; color: #315044; border-radius: 9px; padding: 10px 13px; max-width: 100%; }
body.shm-digital-shop .woocommerce ul.products,
body.shm-digital-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 25px !important; margin: 10px 0 30px !important;
  clear: both;
}
body.shm-digital-shop .woocommerce ul.products::before,
body.shm-digital-shop .woocommerce ul.products::after,
body.shm-digital-shop ul.products::before,
body.shm-digital-shop ul.products::after { content: none !important; display: none !important; }
body.shm-digital-shop .woocommerce ul.products li.product,
body.shm-digital-shop ul.products li.product {
  position: relative; width: auto !important; max-width: none !important;
  float: none !important; clear: none !important; margin: 0 !important;
  display: flex; flex-direction: column;
  border: 1px solid #e8ede7; border-radius: 16px; overflow: hidden;
  background: #fff; padding: 0 0 16px !important;
  box-shadow: 0 3px 12px rgba(35,61,45,.035);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
body.shm-digital-shop ul.products li.product:hover {
  transform: translateY(-5px); border-color: #cbdccf; box-shadow: 0 18px 36px rgba(33,65,47,.105);
}
body.shm-digital-shop ul.products li.product a img {
  display: block; width: 100% !important; height: auto !important;
  aspect-ratio: 4/5; object-fit: cover; border-radius: 0;
  margin: 0 0 17px !important;
  transition: transform .3s ease;
}
body.shm-digital-shop ul.products li.product:hover a img { transform: scale(1.015); }
body.shm-digital-shop ul.products li.product .shm-card-format {
  position: absolute; z-index: 3; left: 12px; top: 12px; padding: 7px 9px;
  border: 1px solid rgba(242,246,239,.88);
  background: rgba(255,255,255,.95); box-shadow: 0 4px 12px rgba(0,0,0,.05);
  border-radius: 6px; color: #3c6450; font-size: 9px; font-weight: 800; letter-spacing: .07em;
}
body.shm-digital-shop ul.products li.product .woocommerce-loop-product__title,
body.shm-digital-shop ul.products li.product .wc-block-grid__product-title,
body.shm-digital-shop ul.products li.product h2,
body.shm-digital-shop ul.products li.product h3 {
  color: #29453a; font-size: 16px !important; line-height: 1.42 !important;
  font-weight: 650 !important; letter-spacing: -.012em; padding: 0 16px !important;
  margin: 0 0 8px !important;
}
body.shm-digital-shop ul.products li.product .price {
  color: #315d48 !important; font-size: 17px !important;
  font-weight: 750 !important; padding: 0 16px; margin: 0 0 14px !important;
}
body.shm-digital-shop ul.products li.product .star-rating { margin: 0 16px 10px !important; }
body.shm-digital-shop ul.products li.product .button,
body.shm-digital-shop ul.products li.product a.add_to_cart_button,
body.shm-digital-shop ul.products li.product a.product_type_simple {
  display: block; text-align: center; margin: auto 15px 0 !important;
  border: 1px solid #254b42; border-radius: 9px !important;
  background: #254b42 !important; color: #fff !important;
  padding: 12px 10px !important; font-size: 13px !important;
  font-weight: 700; line-height: 1.25; text-decoration: none;
  box-shadow: none !important; transition: background .2s ease;
}
body.shm-digital-shop ul.products li.product .button:hover,
body.shm-digital-shop ul.products li.product .button:focus-visible { background: #17392f !important; }
body.shm-digital-shop ul.products li.product a.added_to_cart {
  display: block; padding: 8px 16px 0; font-size: 12px; color: #315d48;
}
body.shm-digital-shop .woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; border: 0; }
body.shm-digital-shop .woocommerce-pagination .page-numbers li { border: 0; }
body.shm-digital-shop .woocommerce-pagination a.page-numbers,
body.shm-digital-shop .woocommerce-pagination span.page-numbers {
  border: 1px solid #dbe5de; background: white; color: #365c49;
  border-radius: 8px; min-width: 38px; min-height: 38px;
}
body.shm-digital-shop .woocommerce-pagination .page-numbers.current { background: #254b42; color: white; }

/* Optional consistency for single-product page; WooCommerce's download workflow is untouched. */
body.shm-digital-product .single-product div.product .summary .price { color: #315d48; font-weight: 700; }
body.shm-digital-product .single_add_to_cart_button.button { background: #254b42; color: white; border-radius: 9px; }
body.shm-digital-product .woocommerce-product-gallery img { border-radius: 14px; }

@media (max-width: 1060px) {
  .shm-hero { grid-template-columns: 1fr 330px; }
  body.shm-digital-shop ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .shm-hero { grid-template-columns: 1fr; padding: 30px; min-height: unset; }
  .shm-hero__art { height: 270px; max-width: 360px; }
  .shm-paper--front { left: 19%; top: 4px; transform: rotate(-7deg) scale(.82); transform-origin: top left; }
  .shm-paper--back { right: 2%; top: 0; transform: rotate(11deg) scale(.85); transform-origin: top right; }
  .shm-art-sticker { bottom: 10px; right: 3%; }
  body.shm-digital-shop ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px !important; }
}
@media (max-width: 480px) {
  .shm-hero { padding: 28px 22px; border-radius: 18px; }
  .shm-hero h1 { font-size: clamp(36px,10vw,46px); }
  .shm-hero__lead { font-size: 16px; }
  .shm-hero__art { height: 240px; }
  .shm-hero__trust { gap: 7px 10px; font-size: 11px; }
  body.shm-digital-shop ul.products { gap: 11px !important; }
  body.shm-digital-shop ul.products li.product .woocommerce-loop-product__title,
  body.shm-digital-shop ul.products li.product h2,
  body.shm-digital-shop ul.products li.product h3 { font-size: 13px !important; padding: 0 10px !important; }
  body.shm-digital-shop ul.products li.product .price { padding: 0 10px; font-size: 15px !important; }
  body.shm-digital-shop ul.products li.product .button { margin: auto 9px 0 !important; font-size: 11px !important; padding: 10px 5px !important; }
  body.shm-digital-shop ul.products li.product .shm-card-format { font-size: 8px; top: 7px; left: 7px; padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .shm-hero__cta, .shm-pill, body.shm-digital-shop ul.products li.product,
  body.shm-digital-shop ul.products li.product a img { transition: none !important; }
}

/* Language + format filters, real WooCommerce attribute navigation. */
.shm-shop-filters {
  background: #f8faf6; border: 1px solid #e4eae2;
  border-radius: 19px; padding: clamp(17px,2.8vw,29px);
  margin: 0 0 18px;
}
.shm-filters-intro h2 {
  font: 500 clamp(22px,2.5vw,30px)/1.2 Georgia,serif;
  color: #294a3b; margin: 5px 0 17px;
}
.shm-filters-intro h2 em { color: #648574; font-weight: 400; }
.shm-filters-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 20px; margin: 12px 0; }
.shm-filters-row__title { font-size: 11px; letter-spacing: .09em; font-weight: 750; color: #486858; min-width: 194px; }
.shm-filters-row__buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.shm-filter-chip {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 8px 16px; background: white; border: 1px solid #d6e2d7;
  border-radius: 99px; text-decoration: none !important;
  font-size: 13px; font-weight: 650; color: #315344 !important;
  transition: background .17s ease, border-color .17s ease;
}
.shm-filter-chip:hover, .shm-filter-chip:focus-visible { background: #ebf1e9; border-color: #7c9887; }
.shm-filter-chip.is-active { background: #254b42; color: #fff !important; border-color: #254b42; }
.shm-filter-reset { display: inline-block; font-size: 12px; color: #526b5e !important; margin-top: 8px; text-decoration: underline !important; }
body.shm-digital-shop ul.products li.product .shm-card-language {
  position: absolute; z-index: 4; top: 12px; right: 12px;
  background: #254b42; color: #fff; padding: 6px 9px;
  font-size: 9px; font-weight: 750; letter-spacing: .03em; border-radius: 6px;
}
@media (max-width: 600px) {
 .shm-shop-filters { padding: 18px 15px; }
 .shm-filters-row__title { min-width: 100%; }
 body.shm-digital-shop ul.products li.product .shm-card-language { top: 7px; right: 7px; font-size: 8px; padding: 5px 6px; }
}

/* Shared native <dialog> quick view: only public product info, not the paid PDF. */
.shm-quick-view-dialog {
  position: fixed !important;
  inset: 0;
  margin: auto !important;
  padding: 0 !important;
  width: min(880px, calc(100vw - 30px));
  max-height: min(88vh, 900px);
  background: #fffdf9;
  color: #2b493a;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 26px 90px rgba(25,45,33,.26);
  overflow: auto;
}
.shm-quick-view-dialog::backdrop { background: rgba(13, 29, 21, .60); }
.shm-quick-view-dialog.shm-qv-fallback-open { display: block !important; z-index: 999999; }
.shm-qv-dialog-body { padding: clamp(18px, 3.4vw, 38px); }
.shm-qv-close {
  position: sticky;
  z-index: 2;
  left: calc(100% - 52px);
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 10px 10px -36px auto !important;
  border: 1px solid #e0e9df !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #315745 !important;
  font: 30px/1 Arial, sans-serif !important;
  cursor: pointer;
}
.shm-qv-close:hover, .shm-qv-close:focus-visible {
  background: #e7f0e8 !important;
  outline: 2px solid #85a490;
}
.shm-qv-product {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}
.shm-qv-product__media {
  background: #f3f4ed;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
}
.shm-qv-product__media img { display: block; width: 100%; max-height: 510px; object-fit: contain; border-radius: 9px; }
.shm-qv-product__info { padding: 12px 14px 10px 0; }
.shm-qv-eyebrow { color: #617c69; letter-spacing: .12em; font-size: 11px; font-weight: 750; }
.shm-qv-title { font-family: Georgia, serif; color: #284737; font-size: clamp(25px, 3vw, 36px); font-weight: 500; line-height: 1.15; margin: 14px 0 13px; }
.shm-qv-price { font-size: 24px; font-weight: 750; margin-bottom: 15px; color: #305b45; }
.shm-qv-description { font-size: 14px; line-height: 1.7; color: #5d6e60; }
.shm-qv-description p { margin: 0 0 12px; }
.shm-qv-trust { margin: 16px 0 20px; font-size: 12px; color: #607868; }
.shm-qv-buttons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.shm-qv-native-cart .button { display: inline-flex !important; background: #254b42 !important; border: 1px solid #254b42 !important; color: #fff !important; border-radius: 9px !important; padding: 13px 18px !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important; }
.shm-qv-native-cart .button:hover { background: #18382f !important; }
.shm-qv-native-cart a.added_to_cart { font-size: 12px; display: inline-block; margin-left: 8px; }
.shm-qv-details-link { color: #315c48 !important; font-size: 13px; font-weight: 700; text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.shm-qv-details-link:hover { color: #142f24 !important; }

@media (max-width: 690px) {
  .shm-qv-product { grid-template-columns: 1fr; gap: 15px; }
  .shm-qv-product__media img { max-height: 310px; }
  .shm-qv-product__info { padding: 0; }
  .shm-quick-view-dialog { width: calc(100vw - 22px); max-height: 92vh; border-radius: 14px; }
  .shm-qv-dialog-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.shm-digital-shop ul.products li.product .shm-card-actions,
  body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action {
    transition: none !important;
  }
}

/* ==============================================
   SHM Digital Shop v1.3 – COMPACT PRODUCT MOCKUPS
   Only on WooCommerce product category/shop cards.
   Product image is ~2/3 of its previous FULL width.
   Unaltered original image files stay on the server;
   only use safe preview/cover images in Media Library.
   ============================================== */
body.shm-digital-shop ul.products li.product .shm-product-image-stage {
  position: relative !important;
  isolation: isolate;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  padding: 12px 14px !important;
  margin: 0 0 18px !important;
  overflow: hidden !important;
  background: #f2f3ed !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}
/* Scale the IMAGE, not the entire product card or its price/title. */
body.shm-digital-shop ul.products li.product .shm-product-image-stage img,
body.shm-digital-shop ul.products li.product a .shm-product-image-stage img {
  display: block !important;
  width: 66.6667% !important;
  max-width: 66.6667% !important;
  height: auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  border-radius: 5px !important;
  box-shadow: 0 11px 22px rgba(37,64,43,.14);
  transform: none !important;
}
body.shm-digital-shop ul.products li.product:hover .shm-product-image-stage img {
  transform: none !important;
}
/* Make short descriptions more compact, for a boutique 4-column layout.
   This applies only if the theme provides an excerpt container. */
body.shm-digital-shop ul.products li.product .woocommerce-product-details__short-description,
body.shm-digital-shop ul.products li.product .product-excerpt,
body.shm-digital-shop ul.products li.product .woocommerce-loop-product__description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  margin: 0 14px 14px;
}
/* Quick-view photo is also a modest 2/3 width, not full modal width. */
.shm-qv-product__media img {
  width: 66.6667% !important;
  max-width: 66.6667% !important;
  max-height: 360px !important;
  margin: 18px auto !important;
  object-fit: contain !important;
}


/* ===========================================================
   SHM DIGITAL SHOP v1.4 – EDITORIAL / TIMELESS STORE
   Generous gaps, smaller mockups and aligned price + actions.
   WooCommerce native cart links retain real add-to-cart logic.
   =========================================================== */

body.shm-digital-shop {
  --shm-card-gap-x: 34px;
  --shm-card-gap-y: 42px;
}

/* More breathing space as the product catalogue grows. */
body.shm-digital-shop .woocommerce ul.products,
body.shm-digital-shop ul.products {
  column-gap: var(--shm-card-gap-x) !important;
  row-gap: var(--shm-card-gap-y) !important;
  margin-bottom: 42px !important;
}

/* Subtle surface treatment without dated heavy gradients. */
body.shm-digital-shop .woocommerce ul.products li.product,
body.shm-digital-shop ul.products li.product {
  padding: 0 0 18px !important;
  border: 1px solid #e7e9e3 !important;
  border-radius: 16px !important;
  background: #fffefa !important;
  box-shadow: 0 5px 20px rgba(35,55,42,.045) !important;
  overflow: hidden;
  min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.shm-digital-shop ul.products li.product:hover,
body.shm-digital-shop ul.products li.product:focus-within {
  border-color: #cbd9cc !important;
  box-shadow: 0 16px 38px rgba(29,53,39,.10) !important;
  transform: translateY(-3px);
}

/* Keep the product preview at ~2/3 inside its stage, with quiet spacing. */
body.shm-digital-shop ul.products li.product .shm-product-image-stage {
  margin-bottom: 19px !important;
  padding: 20px 16px !important;
  background: #f3f4ee !important;
}
body.shm-digital-shop ul.products li.product .shm-product-image-stage img {
  width: 66.6667% !important;
  max-width: 66.6667% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
  box-shadow: 0 10px 24px rgba(35,58,43,.12);
}

/* Product title with more whitespace and readable type hierarchy. */
body.shm-digital-shop ul.products li.product .woocommerce-loop-product__title,
body.shm-digital-shop ul.products li.product h2,
body.shm-digital-shop ul.products li.product h3 {
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-weight: 620 !important;
  color: #2d483a !important;
  margin-bottom: 17px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

/* Unified FOOTER: price left + cart and quick-view icons right. */
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  column-gap: 10px;
  width: 100%;
  margin: auto 0 0 !important;
  padding: 14px 18px 0 !important;
  border-top: 1px solid #edf0e9;
  background: transparent;
  box-sizing: border-box;
  min-width: 0;
}
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-footer__price,
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-footer .price {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  color: #2f5845 !important;
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: normal;
}
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-footer .price del {
  display: inline; opacity: .65;
}

body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-actions {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-actions .shm-icon-action,
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-actions a.button,
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-actions button {
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #dce5dc !important;
  background: #f7faf6 !important;
  color: #355946 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action svg {
  display: block;
  width: 21px !important;
  height: 21px !important;
  flex: 0 0 auto;
  pointer-events: none;
}
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-actions .shm-icon-action:hover,
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-actions .shm-icon-action:focus-visible {
  background: #294f3d !important;
  border-color: #294f3d !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}
body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action:focus-visible {
  outline: 3px solid #a4c1ad !important;
  outline-offset: 2px;
}
body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action::after {
  content: attr(data-shm-tip);
  position: absolute;
  z-index: 50;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 7px 10px;
  border-radius: 7px;
  background: #203c30;
  color: #fff;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 5px 18px rgba(15,35,22,.12);
  transition: opacity .18s ease;
}
body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action:hover::after,
body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action:focus-visible::after {
  opacity: 1; visibility: visible;
}
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-native-cart-hidden,
body.shm-digital-shop ul.products li.product.shm-card-icons-ready > .product-action-wrap.shm-cart-moved-parent,
body.shm-digital-shop ul.products li.product .shm-cart-moved-parent,
body.shm-digital-shop ul.products li.product .shm-card-actions .added_to_cart {
  display: none !important;
}
body.shm-digital-shop ul.products li.product .shm-screen-reader-status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

@media (max-width: 1120px) {
  body.shm-digital-shop { --shm-card-gap-x: 27px; --shm-card-gap-y: 34px; }
}
@media (max-width: 780px) {
  body.shm-digital-shop { --shm-card-gap-x: 22px; --shm-card-gap-y: 28px; }
}
/* One curated column on narrow phones preserves tap targets and avoids clutter. */
@media (max-width: 520px) {
  body.shm-digital-shop { --shm-card-gap-x: 0px; --shm-card-gap-y: 24px; }
  body.shm-digital-shop .woocommerce ul.products,
  body.shm-digital-shop ul.products { grid-template-columns: minmax(0,1fr) !important; }
  body.shm-digital-shop ul.products li.product .shm-card-footer {
    padding-left: 17px !important; padding-right: 17px !important;
  }
}
@media (hover: none), (pointer: coarse) {
  body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action::after { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.shm-digital-shop ul.products li.product,
  body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action { transition: none !important; }
}


/* ================================================================
   SHM DIGITAL SHOP v1.5  |  timeless, calm, deliberately compact
   Fix native + pseudo tooltips, centered auto-fit product collection,
   constrained excerpts, smaller badges, consistent card rhythm.
   ================================================================ */
body.shm-digital-shop { --shm-card-gap-x: 36px; --shm-card-gap-y: 43px; }

/* auto-fit COLLAPSES unoccupied columns: 1-2 products stay centered. */
body.shm-digital-shop .woocommerce ul.products,
body.shm-digital-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 344px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: var(--shm-card-gap-y) var(--shm-card-gap-x) !important;
  width: 100% !important;
  margin: 13px auto 46px !important;
  padding: 0 !important;
}
body.shm-digital-shop .woocommerce ul.products li.product,
body.shm-digital-shop ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 0 13px !important;
  border-radius: 15px !important;
  border: 1px solid #e9ede7 !important;
  background: #fffefa !important;
  box-shadow: 0 4px 16px rgba(30,51,38,.043) !important;
}
body.shm-digital-shop ul.products li.product:hover,
body.shm-digital-shop ul.products li.product:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 31px rgba(30,51,38,.085) !important;
  border-color: #d5e0d5 !important;
}
body.shm-digital-shop ul.products li.product .shm-product-image-stage {
  aspect-ratio: 1.14 / 1 !important;
  padding: 12px 13px !important;
  margin-bottom: 12px !important;
  background: #f2f4ee !important;
}
body.shm-digital-shop ul.products li.product .shm-product-image-stage img {
  width: 66.6667% !important;
  max-width: 66.6667% !important;
  max-height: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  box-shadow: 0 8px 20px rgba(35,58,43,.095) !important;
}
body.shm-digital-shop ul.products li.product .woocommerce-loop-product__title,
body.shm-digital-shop ul.products li.product h2,
body.shm-digital-shop ul.products li.product h3 {
  color: #294539 !important;
  font-size: 15px !important;
  font-weight: 620 !important;
  line-height: 1.4 !important;
  margin: 2px 0 10px !important;
  padding: 0 17px !important;
  min-height: 2.8em;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* Descriptions shown in product cards remain brief; full copy stays in Quick View. */
body.shm-digital-shop ul.products li.product .shm-card-excerpt,
body.shm-digital-shop ul.products li.product .product-excerpt,
body.shm-digital-shop ul.products li.product .product-short-description,
body.shm-digital-shop ul.products li.product .kadence-product-excerpt,
body.shm-digital-shop ul.products li.product .woocommerce-product-details__short-description,
body.shm-digital-shop ul.products li.product .woocommerce-loop-product__description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden !important;
  max-height: 4.65em !important;
  min-height: 4.65em;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  margin: 0 17px 14px !important;
  padding: 0 !important;
  color: #6d7b71 !important;
  text-align: left !important;
}
body.shm-digital-shop ul.products li.product .shm-card-excerpt p { display: inline !important; margin: 0 !important; }
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-footer {
  margin-top: auto !important;
  padding: 12px 17px 0 !important;
  gap: 7px !important;
  border-top: 1px solid #eff0ec !important;
}
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-footer .price {
  font-size: 17px !important;
  line-height: 1.3 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-actions {
  flex-shrink: 0 !important;
  gap: 8px !important;
}
body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-actions .shm-icon-action {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  overflow: visible !important;
  border-radius: 50% !important;
  border: 1px solid #d9e4d9 !important;
  background: #f8faf7 !important;
  color: #365946 !important;
}
body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action::before {
  content: none !important;
  display: none !important;
}
/* Short, single-purpose tooltip — NEVER the product's full name. */
body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action::after {
  content: attr(data-shm-tip) !important;
  text-transform: none !important;
  white-space: nowrap !important;
  max-width: 125px !important;
  min-width: 0 !important;
  width: max-content !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  right: 0 !important;
  bottom: calc(100% + 9px) !important;
  background: #244b3b !important;
  padding: 7px 9px !important;
  border-radius: 6px !important;
}
body.shm-digital-shop ul.products li.product .shm-card-format {
  top: 11px !important;
  left: 11px !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: .055em !important;
  background: rgba(255,255,252,.96) !important;
}
body.shm-digital-shop ul.products li.product .shm-card-language {
  top: 11px !important;
  right: 11px !important;
  border-radius: 999px !important;
  padding: 6px 8px !important;
  background: #607a69 !important;
}
body.shm-digital-shop ul.products li.product span.onsale,
body.shm-digital-shop ul.products li.product .onsale {
  position: absolute !important;
  inset: 11px 11px auto auto !important;
  z-index: 4 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 1.3 !important;
  padding: 6px 11px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #6a826e !important;
  color: #fff !important;
  text-transform: none !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  transform: none !important;
}
body.shm-digital-shop ul.products li.product:has(.shm-card-language) .onsale {
  top: 44px !important;
}
@media (max-width: 1000px) {
  body.shm-digital-shop { --shm-card-gap-x: 27px; --shm-card-gap-y: 33px; }
}
@media (max-width: 620px) {
  body.shm-digital-shop { --shm-card-gap-x: 0px; --shm-card-gap-y: 22px; }
  body.shm-digital-shop .woocommerce ul.products,
  body.shm-digital-shop ul.products {
    grid-template-columns: minmax(0, min(100%, 425px)) !important;
    justify-content: center !important;
  }
  body.shm-digital-shop ul.products li.product.shm-card-icons-ready .shm-card-footer { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (hover: none), (pointer: coarse) {
  body.shm-digital-shop ul.products li.product .shm-card-actions .shm-icon-action::after { display: none !important; }
}
