/* Product modules only. No palette changes to navigation, forms or commerce flows. */
.glade-child-home__product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--glade-child-ink);
}
.glade-child-home__product-card > .glade-child-home__product-media {
  flex-shrink: 0;
}
.glade-child-home__product-card > .glade-child-home__product-meta {
  margin-top: auto;
  padding-top: 10px;
}
.glade-child-home__product-card h3 a,
.glade-child-home__product-meta a,
.glade-child-home__section:has(> .glade-child-home__product-grid) > .glade-child-home__section-head > a {
  color: var(--glade-child-ink);
}
.glade-child-home__product-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.glade-child-home__product-card h3 a:hover,
.glade-child-home__product-meta a:hover,
.glade-child-home__section:has(> .glade-child-home__product-grid) > .glade-child-home__section-head > a:hover {
  color: #76513e;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.glade-child-home__product-card a:focus-visible,
.glade-child-home__section:has(> .glade-child-home__product-grid) > .glade-child-home__section-head > a:focus-visible {
  outline: 2px solid var(--glade-child-accent);
  outline-offset: 4px;
}

/* Shared Glade cards: archive styles were previously absent on related cards. */
:is(body.glade-archive, body.glade-single-product) .glade-product-card {
  color: var(--glade-child-ink);
}
:is(body.glade-archive, body.glade-single-product) .glade-product-card__category {
  color: var(--glade-child-muted);
  background: transparent;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
:is(body.glade-archive, body.glade-single-product) .glade-product-card__title a {
  color: var(--glade-child-ink);
  text-decoration: none;
}
:is(body.glade-archive, body.glade-single-product) .glade-product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--glade-child-ink);
  background: var(--glade-child-bg);
  color: var(--glade-child-ink);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}
:is(body.glade-archive, body.glade-single-product) .glade-product-card__action:hover {
  background: var(--glade-child-ink);
  color: var(--glade-child-bg);
}
:is(body.glade-archive, body.glade-single-product) .glade-product-card__title a:hover {
  color: #76513e;
  text-decoration: underline;
  text-underline-offset: 4px;
}
:is(body.glade-archive, body.glade-single-product) .glade-product-card a:focus-visible {
  outline: 2px solid var(--glade-child-accent);
  outline-offset: 4px;
}
/* Stretch within each real grid row; never allocate a fixed title height. */
body.glade-single-product ul.glade-related-grid .glade-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.glade-single-product ul.glade-related-grid .glade-product-card__media {
  flex-shrink: 0;
}
body.glade-single-product ul.glade-related-grid .glade-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: auto;
  min-height: 0;
  padding-top: 16px;
}
body.glade-single-product ul.glade-related-grid .glade-product-card__title {
  min-height: 0;
}
body.glade-single-product ul.glade-related-grid .glade-product-card__footer {
  min-height: 0;
  margin-bottom: 15px;
}
body.glade-single-product ul.glade-related-grid .glade-product-card__action {
  align-self: stretch;
  margin-top: auto;
  line-height: 1.4;
}
body.glade-single-product .glade-related-grid .glade-product-card__stock {
  color: var(--glade-child-muted);
  font-size: .7rem;
}

/* Native WooCommerce loops embedded in Elementor (the screenshot's Read more cards). */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .elementor .woocommerce ul.products > li.product {
  --theme-link-initial-color: var(--glade-child-ink);
  --theme-link-hover-color: #76513e;
  --theme-button-background-initial-color: var(--glade-child-ink);
  --theme-button-background-hover-color: #514337;
  --theme-button-text-initial-color: var(--glade-child-bg);
  --theme-button-text-hover-color: var(--glade-child-bg);
}
body:not(.woocommerce-cart):not(.woocommerce-checkout) .elementor .woocommerce ul.products > li.product .entry-meta a {
  color: var(--glade-child-muted);
  background: transparent;
  font-size: .7rem;
  font-weight: 500;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout) .elementor .woocommerce ul.products > li.product .ct-woo-card-actions .button {
  min-height: 44px;
}
body:not(.woocommerce-cart):not(.woocommerce-checkout) .elementor .woocommerce ul.products > li.product a:focus-visible {
  outline: 2px solid var(--glade-child-accent);
  outline-offset: 4px;
}

/* Blocksy's active tab reads these local variables; no effect on other tabs. */
body.glade-single-product .woocommerce-tabs > ul.tabs {
  --theme-link-initial-color: var(--glade-child-muted);
  --theme-link-hover-color: var(--glade-child-ink);
  --theme-link-active-color: var(--glade-child-ink);
  --tab-background: var(--glade-child-accent);
}
