/* V44 · Image-led catalogue polish. Load after shop-v43.css.
   Scoped to the shop adapter; business text, forms and legal/footer content stay intact. */
body.shop-ready {
  --shop-muted: #616b77;
  --shop-line: #e1e6eb;
}

/* Keep all six entry points visible, with a quieter, shorter navigation band. */
body.shop-ready .shop-category-nav { padding-block: 10px; }
body.shop-ready .shop-category-link { min-height: 78px; gap: 5px; padding-block: 5px; }
body.shop-ready .shop-category-link > .shop-category-icon { width: 52px; height: 42px; }
body.shop-ready .shop-category-icon > svg { width: 38px; height: 38px; }
body.shop-ready .shop-category-link > span { color: #4c5866; }
body.shop-ready .shop-category-link:is(:hover, [aria-current="page"], [aria-pressed="true"], .active) > span { color: #0070d5; }
body.shop-ready .shop-catalog .shop-category-nav { margin-bottom: 18px; padding-block: 8px; }
body.shop-ready .shop-catalog-inner { padding-top: 14px; }
body.shop-ready .shop-breadcrumb { min-height: 44px; }
body.shop-ready .shop-breadcrumb a { min-height: 44px; }
body.shop-ready .shop-catalog-head { margin: 14px 0 22px; }
body.shop-ready .shop-catalog-head p { color: #626d7b; }
body.shop-ready .shop-catalog-layout { grid-template-columns: 156px minmax(0, 1fr); gap: 24px; }
body.shop-ready .shop-sidebar h2 { margin-bottom: 10px; }
body.shop-ready .shop-filter { min-height: 44px; padding-block: 9px; color: #5d6877; }
body.shop-ready .shop-filter > span:last-child:not(:only-child) { color: #737f8e; }
body.shop-ready .shop-filter:is([aria-pressed="true"], .active) { color: #0069c7; }
body.shop-ready #shop-result-count { color: #626e7c; }

/* A stable media slot prevents intrinsic image dimensions from stretching cards.
   Product silhouettes are contained; course and application scenes may be cropped. */
body.shop-ready :is(.shop-home, .shop-catalog) .shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
body.shop-ready .shop-catalog .shop-grid { gap: 16px; }
body.shop-ready .shop-card { border-color: #e5e9ee; border-radius: 12px; }
body.shop-ready .shop-card-link { height: 100%; }
body.shop-ready .shop-card-media {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #f3f5f7;
  border-bottom: 1px solid #eef0f3;
}
body.shop-ready .shop-card-media > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 17px 17px 25px;
  object-fit: contain;
  object-position: center;
}
body.shop-ready .shop-card-media:is(.shop-scene, .is-scene) > img,
body.shop-ready .shop-card-media > img[data-fit="cover"] {
  padding: 0;
  object-fit: cover;
  mix-blend-mode: normal;
}
body.shop-ready .shop-card-media > .shop-image-note {
  right: 8px;
  bottom: 7px;
  left: auto;
  max-width: calc(100% - 16px);
  padding: 3px 6px;
  border-radius: 4px;
  color: #535f6c;
  background: rgba(255, 255, 255, .94);
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
body.shop-ready .shop-card-media:is(.shop-scene, .is-scene) > .shop-image-note {
  color: #fff;
  background: rgba(22, 34, 47, .76);
}
body.shop-ready .shop-card-media.shop-product-wide > img { object-fit: cover; padding: 8px; transform: none; }

/* Titles remain complete; consistent text slots and a bottom-aligned enquiry
   line keep the action in the same place even when one title wraps further. */
body.shop-ready .shop-card-copy,
body.shop-ready .shop-catalog .shop-card-copy {
  min-height: 222px;
  padding: 18px 18px 10px;
}
body.shop-ready .shop-card-tag {
  min-height: 18px;
  margin-bottom: 6px;
  color: #657180;
  font-size: 11px;
  line-height: 1.6;
}
body.shop-ready .shop-card-copy h3 {
  width: 100%;
  min-height: 3em;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
body.shop-ready .shop-card-summary {
  min-height: 3.3em;
  color: #64707e;
  font-size: 12px;
  line-height: 1.65;
}
body.shop-ready .shop-card-price {
  /* V43 marks this margin important; this sole override preserves bottom alignment. */
  margin-top: auto !important;
  padding-top: 14px;
  color: #303c4a;
  font-size: 13px;
  line-height: 1.6;
}
body.shop-ready .shop-card-action {
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 0;
  padding-top: 0;
  font-size: 12px;
}
body.shop-ready .shop-card-action > span { font-size: 16px; }

/* Optional detail figure for courses and service directions. No controls are hidden. */
body.shop-ready #detail-dialog .shop-detail-visual {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  background: #f3f5f7;
}
body.shop-ready #detail-dialog .shop-detail-visual > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
}
body.shop-ready #detail-dialog .shop-detail-visual:is(.shop-product, [data-fit="contain"]) > img {
  padding: 16px;
  object-fit: contain;
}
body.shop-ready #detail-dialog .shop-detail-visual > :is(figcaption, .shop-detail-caption) {
  display: block;
  margin: 0;
  padding: 8px 12px;
  background: #f8f9fb;
  color: #5e6b7a;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body.shop-ready #detail-dialog .product-media { grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; }
body.shop-ready #detail-dialog #product-image { height: auto; }
body.shop-ready #product-image-note-v44 { margin: 8px 12px 12px; color: #657180; font-size: 11px; line-height: 1.6; text-align: center; }

@media (min-width: 981px) {
  body.shop-ready .topnav > a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 1100px) and (min-width: 981px) {
  body.shop-ready .shop-catalog-layout { grid-template-columns: 144px minmax(0, 1fr); gap: 18px; }
  body.shop-ready .shop-catalog .shop-grid { gap: 12px; }
  body.shop-ready .shop-catalog .shop-card-copy { padding-inline: 13px; }
  body.shop-ready .shop-catalog .shop-card-copy h3 { font-size: 15px; }
}

@media (max-width: 980px) {
  body.shop-ready :is(.shop-home, .shop-catalog) .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  body.shop-ready .shop-catalog-layout { display: block; }
  body.shop-ready .shop-category-link { min-height: 70px; }
  body.shop-ready .shop-catalog .shop-category-nav { margin-bottom: 15px; }
  body.shop-ready .shop-sidebar { margin-bottom: 12px; }
  body.shop-ready .shop-sidebar h2 { margin-bottom: 4px; }
  body.shop-ready .shop-sidebar nav { gap: 7px; padding-bottom: 5px; }
  body.shop-ready .shop-filter { padding-inline: 14px; }
  body.shop-ready .shop-card-copy,
  body.shop-ready .shop-catalog .shop-card-copy { min-height: 220px; }
}

@media (max-width: 600px) {
  body.shop-ready .shop-category-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 6px; padding-block: 7px; }
  body.shop-ready .shop-category-link { flex-direction: row; min-height: 48px; padding: 5px 2px; gap: 5px; }
  body.shop-ready .shop-category-link > span,
  body.shop-ready .shop-catalog .shop-category-link > span { min-height: 0; max-width: none; font-size: 12px; line-height: 1.45; }
  body.shop-ready .shop-category-link > .shop-category-icon,
  body.shop-ready .shop-catalog .shop-category-link > .shop-category-icon { flex: 0 0 24px; width: 24px; height: 24px; }
  body.shop-ready .shop-category-icon > svg { width: 24px; height: 24px; }
  body.shop-ready .shop-catalog .shop-category-nav { margin-bottom: 12px; padding: 6px 5px; }
  body.shop-ready .shop-catalog-inner { padding-top: 3px; }
  body.shop-ready .shop-breadcrumb { font-size: 11px; }
  body.shop-ready .shop-catalog-head { margin: 10px 0 14px; }
  body.shop-ready .shop-catalog-head h1 { font-size: 26px; }
  body.shop-ready .shop-catalog-head p { margin-top: 6px; }
  body.shop-ready .shop-sidebar h2 { font-size: 11px; }
  body.shop-ready .shop-filter { font-size: 12px; }
  body.shop-ready .shop-toolbar { gap: 8px; margin-bottom: 10px; }
  body.shop-ready .shop-search input { min-height: 44px; padding-inline: 8px; font-size: 16px; }
  body.shop-ready .shop-search input::placeholder { font-size: 12px; }
  body.shop-ready .shop-search button { min-width: 44px; min-height: 44px; font-size: 12px; }
  body.shop-ready .shop-sort { flex-basis: 98px; }
  body.shop-ready .shop-sort select { width: 98px; min-height: 44px; font-size: 12px; }
  body.shop-ready :is(.shop-home, .shop-catalog) .shop-grid { gap: 12px 10px; }
  body.shop-ready .shop-card { border-radius: 10px; }
  body.shop-ready .shop-card-media > img { padding: 10px 10px 22px; }
  body.shop-ready .shop-card-media:is(.shop-scene, .is-scene) > img,
  body.shop-ready .shop-card-media > img[data-fit="cover"] { padding: 0; }
  body.shop-ready .shop-card-media.shop-product-wide > img { padding: 8px; }
  body.shop-ready .shop-card-media > .shop-image-note { right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 5px; font-size: 9px; }
  body.shop-ready .shop-card-copy,
  body.shop-ready .shop-catalog .shop-card-copy { min-height: 210px; padding: 12px 12px 7px; }
  body.shop-ready .shop-card-tag { min-height: 17px; margin-bottom: 5px; font-size: 10px; }
  body.shop-ready .shop-card-copy h3 { min-height: 3.1em; font-size: 14px; line-height: 1.55; }
  body.shop-ready .shop-card-summary { min-height: 3.3em; font-size: 12px; line-height: 1.65; }
  body.shop-ready .shop-card-price { padding-top: 12px; font-size: 12px; }
  body.shop-ready .shop-card-action { font-size: 12px; }
  body.shop-ready .shop-section-heading h2 { font-size: 20px; }
  body.shop-ready .shop-section-heading > a { font-size: 12px; }
  body.shop-ready .shop-pagination { margin-top: 22px; }
  body.shop-ready .shop-catalog-note { color: #697584; font-size: 11px; }
  body.shop-ready #detail-dialog .shop-detail-visual { margin-bottom: 16px; border-radius: 9px; }
  body.shop-ready #detail-dialog .shop-detail-visual > img { max-height: 220px; }
}

@media (max-width: 350px) {
  body.shop-ready .shop-category-link { gap: 4px; }
  body.shop-ready .shop-category-link > .shop-category-icon,
  body.shop-ready .shop-catalog .shop-category-link > .shop-category-icon { flex-basis: 22px; width: 22px; height: 22px; }
  body.shop-ready .shop-category-icon > svg { width: 22px; height: 22px; }
  body.shop-ready :is(.shop-home, .shop-catalog) .shop-grid { gap: 12px 8px; }
  body.shop-ready .shop-card-copy,
  body.shop-ready .shop-catalog .shop-card-copy { padding-inline: 10px; }
  body.shop-ready .shop-card-copy h3 { font-size: 13px; }
  body.shop-ready .shop-section-heading { gap: 6px; }
  body.shop-ready .shop-section-heading h2 { font-size: 18px; }
}
