/* DESMART design system 1.0.0 — palette sampled from the homepage.
   Only existing DESMART shortcode components; no changes to layout or data.
   Important declarations are intentional: legacy shortcode CSS is printed in the body. */
:root {
  --dm-design-page: #F5F7F4;
  --dm-design-white: #FFFFFF;
  --dm-design-soft: #E8EEE0;
  --dm-design-accent-soft: #E2EDCF;
  --dm-design-ink: #103E34;
  --dm-design-lime: #80C136;
  --dm-design-line: #DFE7DE;
}
/* Paint only content wrappers containing the catalogue/single-product shortcodes.
   Leave the existing homepage, header, footer, checkout and unrelated pages alone. */
body:not(.home) :is(#main-content, .et-l--body, .et-l--body .et_builder_inner_content, .et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner):has(:is(.dm-consumables, .dmcc, .dmsp, .dmec)):not(.et-l--header *):not(.et-l--footer *) {
  background-color: var(--dm-design-page) !important;
}
body:not(.home) :is(.dm-consumables,.dmcc,.dmsp,.dmec) {
  background-color: var(--dm-design-page) !important;
}
/* Align component-local tokens without changing their sizing or behaviour. */
body:not(.home) .dm-consumables {
  --dmc-ink: var(--dm-design-ink) !important;
  --dmc-lime: var(--dm-design-lime) !important;
  --dmc-line: var(--dm-design-line) !important;
}
body:not(.home) :is(.dmcc,.dmec) {
  --ink: var(--dm-design-ink) !important;
  --lime: var(--dm-design-lime) !important;
  --line: var(--dm-design-line) !important;
}
body:not(.home) .dmsp {
  --dmsp-ink: var(--dm-design-ink) !important;
  --dmsp-lime: var(--dm-design-lime) !important;
  --dmsp-line: var(--dm-design-line) !important;
}
/* Catalogue and category pages: white cards and filters. */
body:not(.home) :is(.dm-consumables,.dmcc) :is(.dm-pcard,.dm-pcard__media,.dm-pcard__body,.dm-consumables__sidebar,.dmcc__sidebar) {
  background-color: var(--dm-design-white) !important;
}
body:not(.home) :is(.dm-consumables,.dmcc) :is(.dm-pcard,.dm-consumables__sidebar,.dmcc__sidebar) {
  border-color: transparent !important;
  box-shadow: none !important;
}
body:not(.home) :is(.dm-consumables,.dmcc) .dm-pcard:hover {
  border-color: #B7C9B1 !important;
  box-shadow: none !important;
}
body:not(.home) .dm-consumables .dm-consumables__apparatus {
  background-color: var(--dm-design-accent-soft) !important;
  border-color: transparent !important;
}
body:not(.home) .dm-consumables .dm-consumables__note,
body:not(.home) .dmcc .dm-cat-seo__content {
  background-color: var(--dm-design-white) !important;
  border-color: transparent !important;
}
body:not(.home) .dmcc .dm-cat-seo__card {
  background-color: var(--dm-design-soft) !important;
  border-color: transparent !important;
}
body:not(.home) .dmcc .dm-cat-seo__note {
  background-color: var(--dm-design-accent-soft) !important;
  border-color: transparent !important;
}
/* Pagination: keep the selected page in dark green. */
body:not(.home) :is(.dm-consumables__pagination,.dmcc__pages) a {
  background-color: var(--dm-design-white) !important;
}
/* Single item: white photo gallery, compact olive purchase box. */
body:not(.home) .dmsp :is(.dmsp__stage,.dmsp__thumb,.dmsp__doclist a) {
  background-color: var(--dm-design-white) !important;
}
body:not(.home) .dmsp .dmsp__stage {
  border-color: transparent !important;
}
body:not(.home) .dmsp .dmsp__buybox {
  background-color: var(--dm-design-soft) !important;
  border-color: transparent !important;
}
/* Equipment: shared surfaces for current catalogue, not a new layout. */
body:not(.home) .dmec :is(.dmec-card,.dmec-photo,.dmec-rental-terms,.dmec-scroll,.dmec-return,.dmec-tabs) {
  background-color: var(--dm-design-white) !important;
}
body:not(.home) .dmec :is(.dmec-card,.dmec-rental-terms,.dmec-scroll,.dmec-return) {
  border-color: transparent !important;
  box-shadow: none !important;
}
body:not(.home) .dmec .dmec-photo {
  border-bottom-color: var(--dm-design-line) !important;
}
body:not(.home) .dmec :is(.dmec-condition,.dmec-rules-grid article) {
  background-color: var(--dm-design-soft) !important;
  border-color: transparent !important;
}
body:not(.home) .dmec .dmec-help {
  background-color: var(--dm-design-accent-soft) !important;
  border-color: transparent !important;
}
body:not(.home) .dmec .dmec-scroll thead th {
  background-color: var(--dm-design-soft) !important;
}
