/*
 * tl-shop.css - Pehmeä editorial WooCommerce: shop/product archives, single
 * products, cart and checkout.
 *
 * Split out of FluentSnippets snippet 36 (review finding M9, 2026-10-18) so it is
 * a cached file instead of ~130 KB inlined into every page. Printed by snippet 40
 * (40-marketing-pages-stylesheets.php) at wp_head priority 10, i.e. the exact
 * position the inline <style> used to occupy, so the cascade is unchanged.
 * Snippet 40 decides which pages load this file - see its gate notes.
 * Deploy: ./tools/deploy-theme-staging.sh, then deploy-theme-prod.sh + purge.
 */

/* WooCommerce cart actions: editorial primary and secondary hierarchy. */

body.page-id-1713 .woocommerce :where(a.button.wc-backward, a.checkout-button, .woocommerce-message a.button.wc-forward) {
  min-height: 50px;
  border: 2px solid #284b3b !important;
  border-radius: 999px !important;
  background: #284b3b !important;
  color: #fffdf8 !important;
  font-family: Montserrat, sans-serif;
  font-size: .9rem;
  font-weight: 600;
}

body.page-id-1713 .woocommerce :where(a.button.wc-backward, a.checkout-button, .woocommerce-message a.button.wc-forward):hover {
  border-color: #18372b !important;
  background: #18372b !important;
  color: #fffdf8 !important;
}

body.page-id-1713 .woocommerce :where(button[name="apply_coupon"], button[name="update_cart"]) {
  min-height: 48px;
  border: 2px solid #284b3b !important;
  border-radius: 999px !important;
  background: #fffdf8 !important;
  color: #284b3b !important;
  font-family: Montserrat, sans-serif;
  font-size: .86rem;
  font-weight: 600;
}

body.page-id-1713 .woocommerce :where(button[name="apply_coupon"], button[name="update_cart"]):not(:disabled):hover {
  background: #e8efe9 !important;
  color: #18372b !important;
}

body.page-id-1713 .woocommerce button[name="update_cart"]:disabled {
  border-color: #c9c1ae !important;
  background: #f1eee6 !important;
  color: #7b827e !important;
  opacity: .72;
}

body.page-id-1713 .woocommerce :where(a.button, button.button):focus-visible {
  outline: 3px solid #9c5f68;
  outline-offset: 4px;
}

/* WooCommerce checkout primary action. */

body.page-id-1715 .woocommerce-checkout #place_order {
  min-height: 54px;
  border: 2px solid #284b3b !important;
  border-radius: 999px !important;
  background: #284b3b !important;
  color: #fffdf8 !important;
  font-family: Montserrat, sans-serif;
  font-size: .92rem;
  font-weight: 600;
}

body.page-id-1715 .woocommerce-checkout #place_order:hover {
  border-color: #18372b !important;
  background: #18372b !important;
  color: #fffdf8 !important;
}

body.page-id-1715 .woocommerce-checkout #place_order:focus-visible {
  outline: 3px solid #9c5f68;
  outline-offset: 4px;
}

/* WooCommerce product archives (shop + product category/tag): calm
   three-column editorial catalogue. Category/tag pages carry tax-product_cat /
   tax-product_tag (not post-type-archive-product) but render the identical loop
   markup, so they get the same cards and brand-green buttons instead of the
   default Kadence turquoise. */

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .content-area,
body.single-product .content-area {
  margin-top: 0;
  margin-bottom: 0;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .content-bg,
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag).content-style-boxed .site,
body.single-product .content-bg,
body.single-product.content-style-boxed .site {
  background: #fffdf8;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) #primary > .content-container,
body.single-product #primary > .content-container {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .entry-header {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(66px, 7vw, 94px) 0 clamp(42px, 5vw, 62px);
  text-align: left;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .entry-header::before {
  content: "Valmennuksia, työkaluja ja tulkintoja";
  display: block;
  margin-bottom: 1rem;
  color: #9c5f68;
  font-family: Montserrat, sans-serif;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .entry-header .archive-title {
  margin: 0;
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3.25rem, 2.45rem + 3vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .woocommerce-products-header {
  display: none;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .kadence-shop-top-row,
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products,
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .woocommerce-pagination {
  width: min(1060px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .kadence-shop-top-row {
  margin-bottom: clamp(30px, 4vw, 46px);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #ddd1af;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .kadence-woo-toggle {
  display: none;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .woocommerce-ordering select {
  min-width: 245px;
  min-height: 48px;
  padding: .65rem 2.5rem .65rem .95rem;
  border: 1px solid #d8d0c4;
  border-radius: 999px;
  background-color: #fffdf8;
  color: #284b3b;
  font-family: Montserrat, sans-serif;
  font-size: .84rem;
  font-weight: 600;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(24px, 3vw, 34px) !important;
  padding-bottom: clamp(96px, 11vw, 154px);
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products > li.product {
  display: flex !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(93, 109, 101, .16);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 14px 38px rgba(38, 53, 47, .07);
  transition: box-shadow .2s ease, transform .2s ease;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products > li.product:hover {
  box-shadow: 0 22px 48px rgba(38, 53, 47, .12);
  transform: translateY(-4px);
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .woocommerce-loop-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #efe0df;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .woocommerce-loop-image-link img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  transition: transform .35s ease;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product:hover .woocommerce-loop-image-link img {
  transform: scale(1.025);
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .product-details {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px) !important;
  background: #fffdf8;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .woocommerce-loop-product__title {
  margin: 0 0 1rem;
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.55rem, 1.36rem + .48vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.14;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .price {
  margin: 0 0 1.2rem;
  color: #284b3b;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .price small {
  color: #6a786f;
  font-size: .68rem;
  font-weight: 400;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .product-excerpt {
  display: -webkit-box;
  margin-bottom: 1.6rem;
  overflow: hidden;
  color: #5d6d65;
  font-size: .86rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .product-excerpt p {
  margin: 0;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .product-action-wrap {
  margin-top: auto;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.3rem;
  border: 2px solid #284b3b !important;
  border-radius: 999px !important;
  background: #284b3b !important;
  color: #fffdf8 !important;
  font-family: Montserrat, sans-serif;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .button:hover {
  border-color: #18372b !important;
  background: #18372b !important;
  color: #fffdf8 !important;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) :where(a, button, select):focus-visible {
  outline: 3px solid #9c5f68;
  outline-offset: 4px;
}

/* Shared product template; the course product retains its scoped variant below. */

body.single-product:not(.postid-4559) .product-title.product-above {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 34px;
  color: #5d6d65;
  font-family: Montserrat, sans-serif;
  font-size: .8rem;
}

body.single-product:not(.postid-4559) .product-title.product-above a {
  color: #9c5f68;
  text-underline-offset: .2em;
}

body.single-product:not(.postid-4559) div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: clamp(48px, 7vw, 82px);
  width: min(1060px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 0 clamp(90px, 10vw, 144px);
  color: #26352f;
  font-family: Montserrat, sans-serif;
}

body.single-product:not(.postid-4559) div.product > .ksk-gallery,
body.single-product:not(.postid-4559) div.product > .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0;
  float: none !important;
  align-self: start;
}

body.single-product:not(.postid-4559) div.product .product_image {
  max-width: none !important;
  overflow: hidden;
  border-radius: 28px;
  background: #efe0df;
  box-shadow: 0 22px 50px rgba(38, 53, 47, .12);
}

body.single-product:not(.postid-4559) div.product .product_image img {
  width: 100% !important;
  height: auto;
  display: block;
}

body.single-product:not(.postid-4559) div.product > .summary {
  width: 100% !important;
  margin: 0;
  padding: clamp(30px, 4vw, 46px);
  float: none !important;
  align-self: center;
  border-top: 5px solid #9c5f68;
  background: linear-gradient(145deg, #efe0df 0%, #f8f3e9 100%);
  box-shadow: 0 18px 44px rgba(38, 53, 47, .09);
}

body.single-product:not(.postid-4559) div.product.product_cat-numerologia > .summary {
  border-top-color: #527f99;
  background: linear-gradient(145deg, #e2eef3 0%, #f8f3e9 100%);
}

/* Product titles are capped by the summary card's width (cqi), not just the
   viewport, so the longest word always fits on one line instead of breaking
   mid-word ("Numerologine/n"). Every product_title font-size below is
   min(<design clamp>, var(--tl-title-fit)). Measured longest words in
   Fraunces 500: "Numerologinen" 6.7em, "videovalmennus" 6.9em -> 14cqi;
   "paikkakunnallasi" 7.3em, "-yksilövalmennus" 7.5em,
   "-verkkovalmennus" 8em -> 12cqi. Re-check when adding a product whose
   title has a word longer than ~7em. */

body.single-product div.product > .summary {
  container-type: inline-size;
}

body.single-product div.product .product_title {
  --tl-title-fit: 14cqi;
}

body.single-product:is(.postid-1721, .postid-1797, .postid-1798, .postid-30342) div.product .product_title {
  --tl-title-fit: 12cqi;
}

body.single-product:not(.postid-4559) div.product .product_title {
  margin: 0 0 1.2rem;
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: min(clamp(2.55rem, 2rem + 1.85vw, 3.65rem), var(--tl-title-fit));
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.03;
  text-wrap: balance;
}

body.single-product:not(.postid-4559) div.product .summary .price {
  margin: 0 0 1.5rem;
  color: #284b3b;
  font-size: 1.28rem;
  font-weight: 600;
}

body.single-product:not(.postid-4559) div.product .summary .price small {
  color: #5d6d65;
  font-size: .7rem;
  font-weight: 400;
}

body.single-product:not(.postid-4559) div.product .woocommerce-product-details__short-description {
  color: #4f6159;
  font-size: 1rem;
  line-height: 1.68;
}

body.single-product:not(.postid-4559) div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: stretch;
  margin-top: 1.7rem;
}

body.single-product:not(.postid-4559) div.product form.cart .quantity .qty {
  width: 74px;
  min-height: 52px;
  border: 1px solid #c9c1ae;
  border-radius: 12px;
  background: #fffdf8;
  color: #26352f;
}

body.single-product:not(.postid-4559) div.product .summary .button {
  display: inline-flex;
  min-height: 52px;
  flex: 1 1 220px;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.45rem;
  border: 2px solid #284b3b !important;
  border-radius: 999px !important;
  background: #284b3b !important;
  color: #fffdf8 !important;
  font-size: .9rem;
  font-weight: 600;
}

body.single-product:not(.postid-4559) div.product .summary .button:hover {
  border-color: #18372b !important;
  background: #18372b !important;
  color: #fffdf8 !important;
  transform: translateY(-1px);
}

body.single-product:not(.postid-4559) div.product .product_meta {
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(93, 109, 101, .22);
  color: #5d6d65;
  font-size: .75rem;
  line-height: 1.55;
}

body.single-product:not(.postid-4559) div.product .product_meta a {
  color: #284b3b;
}

body.single-product:not(.postid-4559) div.product > .woocommerce-tabs,
body.single-product:not(.postid-4559) div.product > .related.products {
  grid-column: 1 / -1;
  margin-top: clamp(24px, 4vw, 50px);
  padding-top: clamp(58px, 8vw, 94px);
  border-top: 1px solid #ddd1af;
}

body.single-product:not(.postid-4559) div.product .woocommerce-tabs .tabs {
  display: flex;
  width: min(720px, 100%);
  margin: 0 auto 2.2rem;
  padding: 0;
  gap: .65rem;
  border: 0;
}

body.single-product:not(.postid-4559) div.product .woocommerce-tabs .tabs li {
  margin: 0;
  border: 1px solid #d8d0c4;
  border-radius: 999px;
  background: #fffdf8;
}

body.single-product:not(.postid-4559) div.product .woocommerce-tabs .tabs li.active {
  border-color: #284b3b;
  background: #284b3b;
}

body.single-product:not(.postid-4559) div.product .woocommerce-tabs .tabs li a {
  padding: .65rem 1rem;
  color: #284b3b;
  font-size: .78rem;
  font-weight: 600;
}

body.single-product:not(.postid-4559) div.product .woocommerce-tabs .tabs li.active a {
  color: #fffdf8;
}

body.single-product:not(.postid-4559) div.product .woocommerce-Tabs-panel {
  width: min(720px, 100%);
  margin-inline: auto;
  color: #26352f;
  font-size: clamp(1rem, .97rem + .12vw, 1.075rem);
  line-height: 1.72;
}

body.single-product:not(.postid-4559) div.product .woocommerce-Tabs-panel :where(h2, h3, h4) {
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

body.single-product:not(.postid-4559) div.product .woocommerce-Tabs-panel h2 {
  font-size: clamp(2.25rem, 1.8rem + 1.45vw, 3.2rem);
}

body.single-product:not(.postid-4559) div.product > .related.products > h2 {
  margin: 0 0 clamp(36px, 5vw, 54px);
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.25rem, 1.85rem + 1.35vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -.03em;
}

body.single-product:not(.postid-4559) div.product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(24px, 3vw, 34px) !important;
}

body.single-product:not(.postid-4559) div.product .related.products li.product {
  display: flex;
  width: auto !important;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(93, 109, 101, .16);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(38, 53, 47, .07);
}

body.single-product:not(.postid-4559) div.product .related.products .product-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
  background: #fffdf8;
}

body.single-product:not(.postid-4559) div.product .related.products .woocommerce-loop-product__title {
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
}

body.single-product:not(.postid-4559) div.product .related.products .product-action-wrap {
  margin-top: auto;
}

body.single-product :where(a, button, input, select):focus-visible {
  outline: 3px solid #9c5f68;
  outline-offset: 4px;
}

/* Numerologian verkkokurssi: editorial WooCommerce product presentation. */

body.postid-4559 .content-area {
  margin-top: 0;
  margin-bottom: 0;
}

body.postid-4559 .content-bg,
body.postid-4559.content-style-boxed .site {
  background: #fffdf8;
}

body.postid-4559 .product-title.product-above {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 34px;
  color: #5d6d65;
  font-family: Montserrat, sans-serif;
  font-size: .82rem;
}

body.postid-4559 .product-title.product-above a {
  color: #527f99;
  text-underline-offset: .2em;
}

body.postid-4559 #product-4559 {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(48px, 7vw, 88px);
  width: min(1060px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 0 clamp(90px, 10vw, 144px);
  box-shadow: none;
  color: #26352f;
  font-family: Montserrat, sans-serif;
}

body.postid-4559 #product-4559 > .ksk-gallery,
body.postid-4559 #product-4559 > .woocommerce-product-gallery {
  width: 100% !important;
  grid-column: 1;
  margin: 0;
  float: none !important;
  align-self: start;
}

body.postid-4559 #product-4559 .product_image {
  max-width: none !important;
  overflow: hidden;
  border-radius: 28px;
  background: #e2eef3;
  box-shadow: 0 22px 50px rgba(38, 53, 47, .12);
}

body.postid-4559 #product-4559 .product_image img {
  width: 100% !important;
  height: auto;
  display: block;
}

body.postid-4559 #product-4559 > .summary {
  width: 100% !important;
  grid-column: 2;
  margin: 0;
  padding: clamp(30px, 4vw, 46px);
  float: none !important;
  align-self: center;
  border-top: 5px solid #527f99;
  background: #e2eef3;
  box-shadow: 0 18px 44px rgba(38, 53, 47, .09);
}

body.postid-4559 #product-4559 .product_title {
  margin: 0 0 1.2rem;
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: min(clamp(2.65rem, 2.1rem + 1.35vw, 3.25rem), var(--tl-title-fit));
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

body.postid-4559 #product-4559 .summary .price {
  margin: 0 0 1.6rem;
  color: #284b3b;
  font-size: 1.35rem;
  font-weight: 600;
}

body.postid-4559 #product-4559 .summary .woocommerce-product-details__short-description {
  color: #4f6159;
  font-size: 1rem;
  line-height: 1.68;
}

body.postid-4559 #product-4559 .summary .button {
  display: inline-flex;
  min-height: 52px;
  margin-top: .45rem;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.45rem;
  border: 2px solid #284b3b;
  border-radius: 999px;
  background: #284b3b;
  color: #fffdf8;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

body.postid-4559 #product-4559 .summary .button::after {
  content: "\2197";
  margin-left: .55rem;
  font-size: 1.1em;
}

body.postid-4559 #product-4559 .summary .button:hover {
  border-color: #18372b;
  background: #18372b;
  color: #fffdf8;
  transform: translateY(-2px);
}

body.postid-4559 #product-4559 .product_meta {
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(82, 127, 153, .28);
  color: #5d6d65;
  font-size: .76rem;
  line-height: 1.55;
}

body.postid-4559 #product-4559 .product_meta .tagged_as {
  display: none;
}

body.postid-4559 #product-4559 .product_meta a {
  color: #284b3b;
}

body.postid-4559 #product-4559 > .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: clamp(22px, 4vw, 48px);
  padding-top: clamp(64px, 8vw, 102px);
  border-top: 1px solid #ddd1af;
}

body.postid-4559 #product-4559 .woocommerce-tabs .tabs {
  display: none;
}

body.postid-4559 #product-4559 #tab-description {
  width: min(720px, 100%);
  margin-inline: auto;
  color: #26352f;
  font-size: clamp(1rem, .97rem + .12vw, 1.075rem);
  line-height: 1.72;
}

body.postid-4559 #product-4559 #tab-description :is(h2, h3) {
  margin: 0 0 1.5rem;
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.35rem, 1.85rem + 1.6vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
}

body.postid-4559 #product-4559 #tab-description p {
  margin-bottom: 1.45rem;
}

body.postid-4559 #product-4559 #tab-description p:nth-of-type(1) {
  padding: clamp(26px, 4vw, 38px);
  border-left: 5px solid #527f99;
  background: #e2eef3;
  color: #284b3b;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.3rem, 1.15rem + .45vw, 1.62rem);
  font-weight: 500;
  line-height: 1.4;
}

body.postid-4559 #product-4559 #tab-description a {
  color: #284b3b;
  font-weight: 600;
  text-underline-offset: .22em;
}

body.postid-4559 #product-4559 > .related.products {
  grid-column: 1 / -1;
  margin-top: clamp(18px, 4vw, 46px);
  padding-top: clamp(64px, 8vw, 102px);
  border-top: 1px solid #ddd1af;
}

body.postid-4559 #product-4559 > .related.products > h2 {
  margin: 0 0 clamp(36px, 5vw, 54px);
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.35rem, 1.9rem + 1.5vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -.03em;
}

body.postid-4559 #product-4559 .related.products .product {
  overflow: hidden;
  border: 1px solid rgba(93, 109, 101, .16);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(38, 53, 47, .07);
}

body.postid-4559 #product-4559 .related.products .product-details {
  background: #fffdf8;
}

body.postid-4559 #product-4559 .related.products .woocommerce-loop-product__title {
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
}

body.postid-4559 #product-4559 .related.products .button {
  border-radius: 999px;
  background: #284b3b;
  color: #fffdf8;
}

body.postid-4559 #product-4559 :where(a, button):focus-visible {
  outline: 3px solid #527f99;
  outline-offset: 4px;
}

/* Keep every WooCommerce purchase action in the approved editorial palette. */

body.single-product :is(#kadence-sticky-add-to-cart, #kadence-mobile-sticky-add-to-cart) {
  border-color: #ddd1af !important;
  background: #fffdf8 !important;
  box-shadow: 0 10px 28px rgba(38, 53, 47, .1);
  color: #26352f;
}

body.single-product :is(#kadence-sticky-add-to-cart, #kadence-mobile-sticky-add-to-cart) .single_add_to_cart_button,
body.single-product div.product > .summary .button,
body.single-product div.product > :is(.upsells.products, .related.products) .button {
  min-height: 50px;
  border: 2px solid #284b3b !important;
  border-radius: 999px !important;
  background: #284b3b !important;
  color: #fffdf8 !important;
  font-family: Montserrat, sans-serif;
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
}

body.single-product :is(#kadence-sticky-add-to-cart, #kadence-mobile-sticky-add-to-cart) .single_add_to_cart_button:hover,
body.single-product div.product > .summary .button:hover,
body.single-product div.product > :is(.upsells.products, .related.products) .button:hover {
  border-color: #18372b !important;
  background: #18372b !important;
  color: #fffdf8 !important;
}

/* Shared upsell and related-product cards, including the scoped course product. */

body.single-product div.product > :is(.upsells.products, .related.products) {
  width: 100% !important;
  max-width: none !important;
  grid-column: 1 / -1;
  margin-top: clamp(24px, 4vw, 50px);
  padding-top: clamp(58px, 8vw, 94px);
  float: none !important;
  border-top: 1px solid #ddd1af;
}

body.single-product div.product > :is(.upsells.products, .related.products) > h2 {
  margin: 0 0 clamp(36px, 5vw, 54px);
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.25rem, 1.85rem + 1.35vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -.03em;
}

body.single-product div.product > :is(.upsells.products, .related.products) ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(24px, 3vw, 34px) !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  float: none !important;
}

body.single-product div.product > :is(.upsells.products, .related.products) li.product {
  display: flex !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(93, 109, 101, .16);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(38, 53, 47, .07);
}

body.single-product div.product > :is(.upsells.products, .related.products) .woocommerce-loop-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #efe0df;
}

body.single-product div.product > :is(.upsells.products, .related.products) .woocommerce-loop-image-link img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

body.single-product div.product > :is(.upsells.products, .related.products) .product-details {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 24px !important;
  background: #fffdf8;
}

body.single-product div.product > :is(.upsells.products, .related.products) .woocommerce-loop-product__title {
  color: #26352f;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
}

body.single-product div.product > :is(.upsells.products, .related.products) .product-action-wrap {
  margin-top: auto;
}

body.single-product div.product > :is(.upsells.products, .related.products) .button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.single-product:not(.postid-4559) div.product {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
    gap: 40px;
  }

  body.single-product div.product > :is(.upsells.products, .related.products) ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.postid-4559 #product-4559 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px;
  }

  body.postid-4559 #product-4559 > :where(.ksk-gallery, .summary) {
    grid-column: 1 !important;
  }

  body.postid-4559 #product-4559 > .summary {
    align-self: stretch;
  }
}

@media (max-width: 767px) {
  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .entry-header,
  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .kadence-shop-top-row,
  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products,
  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .woocommerce-pagination,
  body.single-product:not(.postid-4559) .product-title.product-above,
  body.single-product:not(.postid-4559) div.product {
    width: min(100% - 32px, 1060px);
  }

  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .entry-header {
    padding-block: 52px 38px;
  }

  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .entry-header .archive-title {
    font-size: clamp(2rem, 8.5vw, 2.125rem);
    line-height: 1.12;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .kadence-shop-top-row {
    align-items: stretch;
    gap: 14px;
  }

  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .woocommerce-ordering,
  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .woocommerce-ordering select {
    width: 100%;
  }

  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding-bottom: 92px;
  }

  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .product-details {
    padding: 26px 22px 28px !important;
  }

  body.single-product:not(.postid-4559) .product-title.product-above {
    padding-top: 24px;
  }

  body.single-product:not(.postid-4559) div.product {
    display: block;
    padding-block: 40px 92px;
  }

  body.single-product:not(.postid-4559) div.product .product_image {
    border-radius: 18px;
  }

  body.single-product:not(.postid-4559) div.product > .summary {
    margin-top: 28px;
    padding: 32px 22px 34px;
  }

  body.single-product:not(.postid-4559) div.product .product_title {
    font-size: clamp(2rem, 8.5vw, 2.125rem);
    line-height: 1.12;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  body.postid-4559 #product-4559 .product_title {
    font-size: clamp(2rem, 8.5vw, 2.125rem);
    line-height: 1.12;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .price small,
  body.single-product:not(.postid-4559) div.product .summary .price small,
  body.single-product div.product > :is(.upsells.products, .related.products) .price small,
  body.single-product :is(.woocommerce-breadcrumb, .kadence-breadcrumbs, .rank-math-breadcrumb) {
    font-size: max(.75rem, 12px);
    line-height: 1.5;
  }

  body.single-product :is(.woocommerce-breadcrumb, .kadence-breadcrumbs, .rank-math-breadcrumb) a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    vertical-align: middle;
  }

  :is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product .woocommerce-loop-product__title a,
  body.single-product :is(.upsells, .related).products li.product .woocommerce-loop-product__title a {
    display: flex;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
  }

  body.single-product .kt-gallery-fullscreen-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  body.postid-4559 #product-4559 #tab-description :is(h2, h3) {
    font-size: 1.75rem;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  body.single-product:not(.postid-4559) div.product .woocommerce-tabs,
  body.single-product:not(.postid-4559) div.product .related.products {
    margin-top: 62px;
    padding-top: 58px;
  }

  body.single-product:not(.postid-4559) div.product .woocommerce-tabs .tabs {
    flex-wrap: wrap;
  }

  body.single-product:not(.postid-4559) div.product .related.products ul.products {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body.single-product div.product > :is(.upsells.products, .related.products) ul.products {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body.single-product div.product > :is(.upsells.products, .related.products) .product-details {
    padding: 26px 22px 28px !important;
  }
}
