/* Rozer + the supplied DrHappy child theme, scoped to product archives. */
body.accentmed-smart-filters-rozer {
  --amf-accent: var(--mh-red, #e30613);
  --amf-accent-dark: var(--mh-red-dark, #b80912);
  --amf-radius: 14px;
}
body.accentmed-smart-filters-rozer .amf-panel__header { background: #fff; }
body.accentmed-smart-filters-rozer .amf-chip { border-color: #f7cbd0; background: #fff1f2; color: #941321; }
body.accentmed-smart-filters-rozer .amf-option input,
body.accentmed-smart-filters-rozer .amf-switch input { display: inline-block; margin: 0; }
body.accentmed-smart-filters-rozer .amf-option input { position: relative; flex: 0 0 17px; }
body.accentmed-smart-filters-rozer .amf-sort select { margin: 0; width: auto; max-width: 100%; }
body.accentmed-smart-filters-rozer .rozer-shop-toolbar { display: block; padding: 0; margin: 0; border: 0; background: transparent; }
body.accentmed-smart-filters-rozer .rozer-shop-toolbar .amf-results-bar { width: 100%; }
body.accentmed-smart-filters-rozer .button-show-filter,
body.accentmed-smart-filters-rozer #_mobile_filters_,
body.accentmed-smart-filters-rozer :is(#_desktop_filters_, #amf-rozer-sidebar) > .side-close-icon { display: none !important; }
body.accentmed-smart-filters-rozer :is(#_desktop_filters_, #amf-rozer-sidebar) {
  position: static; display: block; width: auto; height: auto; max-height: none;
  padding: 0; margin: 0; transform: none; opacity: 1; visibility: visible; overflow: visible; z-index: auto;
}
body.accentmed-smart-filters-rozer #shop-filters { padding: 0; margin: 0; }
body.accentmed-smart-filters-rozer .amf-view-button {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  min-width: 36px; padding: 0; border: 1px solid var(--amf-line); border-radius: 8px;
  background: #fff; color: var(--amf-muted); cursor: pointer;
}
body.accentmed-smart-filters-rozer .amf-view-button[aria-pressed="true"],
body.accentmed-smart-filters-rozer .amf-view-button:hover { color: var(--amf-accent); border-color: var(--amf-accent); }
body.accentmed-smart-filters-rozer :is(.amf-view-button, .amf-filter-trigger, .amf-panel__close):focus-visible {
  outline: 2px solid var(--amf-accent); outline-offset: 3px;
}
body.accentmed-smart-filters-rozer .amf-rozer-drawer { display: none; }
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-view { display: none; }
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-filter-trigger { display: inline-flex; }
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-results-bar__actions { gap: 8px; }
body.accentmed-smart-filters-rozer .amf-pagination a[data-amf-page]::before,
body.accentmed-smart-filters-rozer .amf-pagination a[data-amf-page]::after { content: none; }
/* The DrHappy child theme stacks generic cards vertically. Restore Rozer's
   horizontal arrangement only for the explicit list view in this catalog. */
body.accentmed-smart-filters-rozer .amf-results--rozer .product-inner.product-list {
  flex-direction: row; align-items: stretch; gap: 16px;
}
body.accentmed-smart-filters-rozer .amf-results--rozer .product-list > .product-image {
  flex: 0 0 25%; min-width: 0;
}
body.accentmed-smart-filters-rozer .amf-results--rozer .product-list > .product-content {
  flex: 1 1 auto; min-width: 0; padding: 15px 0;
}
body.accentmed-smart-filters-rozer .amf-results--rozer .product-list > .box-list {
  flex: 0 0 24%; min-width: 0; padding: 15px 0 15px 16px;
}
@media (max-width: 767px) {
  body.accentmed-smart-filters-rozer .amf-results--rozer .product-inner.product-list { flex-wrap: wrap; }
  body.accentmed-smart-filters-rozer .amf-results--rozer .product-list > .product-image { flex-basis: 35%; }
  body.accentmed-smart-filters-rozer .amf-results--rozer .product-list > .product-content { flex-basis: calc(65% - 16px); }
  body.accentmed-smart-filters-rozer .amf-results--rozer .product-list > .box-list {
    flex-basis: 100%; border-left: 0; border-top: 1px solid var(--amf-line); padding: 12px 0 0;
  }
}
body.accentmed-smart-filters-rozer.amf-responsive-drawer.amf-drawer-open .amf-drawer-backdrop {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-rozer-drawer {
  display: block;
  position: fixed;
  z-index: 1000001;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--amf-drawer-width, 80vw);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  visibility: hidden;
  transform: translate3d(-102%, 0, 0);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), visibility .28s ease;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer.amf-drawer-open .amf-rozer-drawer {
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-rozer-drawer .amf-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel__header {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-items: center;
  padding: calc(15px + env(safe-area-inset-top)) 16px 15px;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel__header > div:first-child {
  min-width: 0;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel__header-actions {
  flex: 0 0 auto;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 4px;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-options {
  max-height: none;
  overflow: visible;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-price__track {
  --amf-mid: .5;
  height: 44px;
  background-size: calc(100% - 44px) 4px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-price__track input[type="range"] {
  height: 44px;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-price__track input[data-amf-range="min"] {
  clip-path: inset(0 calc(22px + (100% - 44px) * (1 - var(--amf-mid))) 0 0);
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-price__track input[data-amf-range="max"] {
  clip-path: inset(0 0 0 calc(22px + (100% - 44px) * var(--amf-mid)));
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-price__track:focus-within {
  outline: 2px solid var(--amf-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-price__track input[type="range"]::-webkit-slider-thumb {
  width: 44px;
  height: 44px;
  border: 0;
  background: radial-gradient(circle, var(--amf-accent) 0 8px, #fff 8px 11px, transparent 11px);
  box-shadow: none;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-price__track input[type="range"]::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: 0;
  background: radial-gradient(circle, var(--amf-accent) 0 8px, #fff 8px 11px, transparent 11px);
  box-shadow: none;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--amf-line);
  border-radius: 50%;
  background: #fff;
  color: var(--amf-ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-filter-trigger {
  display: inline-flex;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-results-bar {
  margin-top: 10px;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel .amf-mobile-apply {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: calc(54px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 0 16px env(safe-area-inset-bottom);
  border: 0;
  border-radius: 0;
  background: var(--amf-accent);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel.amf-has-pending .amf-mobile-apply {
  background: var(--amf-accent-dark);
  box-shadow: none;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-mobile-apply strong:not(:empty)::before {
  content: '(';
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-mobile-apply strong:not(:empty)::after {
  content: ')';
}

#amf-shop-content {
  position: relative;
  min-height: 180px;
}

#amf-shop-content::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  visibility: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(2px);
  content: '';
  opacity: 0;
  transition: opacity .15s, visibility .15s;
}

#amf-shop-content.amf-is-loading::after {
  visibility: visible;
  opacity: 1;
}

#amf-shop-content.amf-is-loading::before {
  position: absolute;
  z-index: 21;
  top: 90px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid rgba(227, 6, 19, .15);
  border-top-color: var(--amf-accent);
  border-radius: 50%;
  content: '';
  animation: amf-spin .7s linear infinite;
}

body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel .amf-mobile-apply { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  body.accentmed-smart-filters-rozer .amf-rozer-drawer,
  body.accentmed-smart-filters-rozer .amf-drawer-backdrop { transition: none; }
}
@media (max-width: 991.98px) {
  body.accentmed-smart-filters-rozer .amf-results-bar__actions { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  body.accentmed-smart-filters-rozer .amf-results-bar__actions { width: 100%; justify-content: space-between; }
  body.accentmed-smart-filters-rozer .amf-sort select { min-width: 0; max-width: 165px; }
}

/* DrHappy's neutral surfaces, red details and compact shop typography. */
body.accentmed-smart-filters-rozer {
  --amf-ink: #202020;
  --amf-muted: #707070;
  --amf-line: #e5e5e5;
  --amf-soft: #f5f5f5;
  --amf-radius: 12px;
  --amf-shadow: none;
}
body.accentmed-smart-filters-rozer .amf-panel {
  border: 1px solid var(--amf-line);
  background: var(--amf-soft);
  font-family: inherit;
  box-shadow: none;
}
body.accentmed-smart-filters-rozer .amf-panel__header {
  position: relative;
  display: block;
  padding: 20px;
  border-top: 3px solid var(--amf-accent);
  border-bottom: 0;
  background: #fff;
}
body.accentmed-smart-filters-rozer .amf-drhappy-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: #141414;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1;
}
body.accentmed-smart-filters-rozer .amf-drhappy-brand > span { color: var(--amf-accent); }
body.accentmed-smart-filters-rozer .amf-panel h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.5px;
}
body.accentmed-smart-filters-rozer .amf-panel__subtitle {
  margin: 6px 0 0;
  color: var(--amf-muted);
  font-size: 12px;
  line-height: 1.5;
}
body.accentmed-smart-filters-rozer .amf-panel__header-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  gap: 8px;
}
body.accentmed-smart-filters-rozer .amf-reset {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--amf-line);
  border-radius: 99px;
  background: #fff;
  color: var(--amf-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
}
body.accentmed-smart-filters-rozer .amf-reset:not(:disabled):hover {
  border-color: var(--amf-accent);
  color: var(--amf-accent-dark);
}
body.accentmed-smart-filters-rozer .amf-panel__body { padding: 2px 0 12px; }
body.accentmed-smart-filters-rozer .amf-group {
  margin: 10px 12px 0;
  border: 1px solid var(--amf-line);
  border-radius: 9px;
  background: #fff;
}
body.accentmed-smart-filters-rozer .amf-group > summary {
  padding: 17px 40px 17px 14px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .035em;
  line-height: 1.4;
  text-transform: uppercase;
}
body.accentmed-smart-filters-rozer .amf-group > summary::after {
  top: 50%;
  right: 15px;
  width: 12px;
  height: 12px;
  border: 0;
  background: linear-gradient(var(--amf-muted), var(--amf-muted)) center / 10px 1.5px no-repeat;
  transform: translateY(-50%);
}
body.accentmed-smart-filters-rozer .amf-group:not([open]) > summary::after {
  background: linear-gradient(var(--amf-muted), var(--amf-muted)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--amf-muted), var(--amf-muted)) center / 1.5px 10px no-repeat;
  transform: translateY(-50%);
}
body.accentmed-smart-filters-rozer .amf-group[open] > summary::before {
  position: absolute;
  bottom: 9px;
  left: 14px;
  width: 26px;
  height: 2px;
  background: var(--amf-accent);
  content: '';
}
body.accentmed-smart-filters-rozer .amf-group__content { padding: 3px 10px 11px; }
body.accentmed-smart-filters-rozer .amf-search { margin: 0 3px 8px; }
body.accentmed-smart-filters-rozer .amf-search input {
  height: 37px;
  border-radius: 6px;
  background: #fafafa;
  font-family: inherit;
  font-size: 12px;
}
body.accentmed-smart-filters-rozer .amf-option {
  min-height: 37px;
  padding: 6px;
  border-radius: 5px;
  color: #444;
  font-size: 12px;
  line-height: 1.5;
  transition: background .15s ease;
}
body.accentmed-smart-filters-rozer .amf-option:hover { background: #f5f5f5; }
body.accentmed-smart-filters-rozer .amf-option:has(input:checked) {
  background: #fff1f2;
  color: #a20c15;
}
body.accentmed-smart-filters-rozer .amf-option input { border-color: #c7c7c7; }
body.accentmed-smart-filters-rozer .amf-option input:checked { border-color: var(--amf-accent); }
body.accentmed-smart-filters-rozer .amf-option input[type="radio"]:checked { background: #fff; }
body.accentmed-smart-filters-rozer .amf-option input[type="radio"]:checked::after { background: var(--amf-accent); }
body.accentmed-smart-filters-rozer .amf-option small {
  min-width: 20px;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  color: var(--amf-muted);
  font-size: 11px;
}
body.accentmed-smart-filters-rozer .amf-category-row { gap: 0; }
body.accentmed-smart-filters-rozer .amf-category-children { margin-top: 4px; }
body.accentmed-smart-filters-rozer .amf-price { padding: 0 4px 3px; }
body.accentmed-smart-filters-rozer .amf-price__inputs { gap: 6px; }
body.accentmed-smart-filters-rozer .amf-price__inputs input {
  height: 38px;
  border-radius: 6px;
  background: #fafafa;
  font-family: inherit;
  font-weight: 600;
}
body.accentmed-smart-filters-rozer .amf-switches {
  margin: 10px 12px 0;
  padding: 0 14px;
  border: 1px solid var(--amf-line);
  border-radius: 9px;
  background: #fff;
}
body.accentmed-smart-filters-rozer .amf-switch { min-height: 62px; }
body.accentmed-smart-filters-rozer .amf-switch + .amf-switch { border-top: 1px solid var(--amf-line); }
body.accentmed-smart-filters-rozer .amf-switch strong { font-size: 12px; font-weight: 700; }
body.accentmed-smart-filters-rozer .amf-switch i { background: #d9d9d9; }
body.accentmed-smart-filters-rozer .amf-active { padding: 10px 12px 0; gap: 6px; }
body.accentmed-smart-filters-rozer .amf-chip {
  padding: 7px 9px;
  border-color: #f0c8cc;
  border-radius: 6px;
  background: #fff;
  color: var(--amf-accent-dark);
  font-size: 11px;
}
body.accentmed-smart-filters-rozer .amf-chip:hover { border-color: var(--amf-accent); }
body.accentmed-smart-filters-rozer .amf-notice {
  margin: 10px 12px 0;
  border-left: 2px solid var(--amf-accent);
  border-radius: 4px;
  background: #fff;
  color: #555;
}
body.accentmed-smart-filters-rozer .amf-results-bar { border-radius: 8px; padding: 10px 14px; }
body.accentmed-smart-filters-rozer .amf-results-count { color: #555; }
body.accentmed-smart-filters-rozer .amf-results-count strong { color: var(--amf-accent); font-size: 18px; }
body.accentmed-smart-filters-rozer .amf-sort select {
  border-radius: 99px;
  background-color: var(--amf-soft);
  font-family: inherit;
}
body.accentmed-smart-filters-rozer .amf-view-button { border-radius: 6px; }
body.accentmed-smart-filters-rozer .amf-view-button[aria-pressed="true"] {
  border-color: var(--amf-ink);
  background: var(--amf-ink);
  color: #fff;
}
body.accentmed-smart-filters-rozer :is(.amf-search input, .amf-price__inputs input, .amf-sort select):focus {
  border-color: var(--amf-accent);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .1);
}
body.accentmed-smart-filters-rozer :is(.amf-option input, .amf-reset, .amf-group > summary):focus-visible,
body.accentmed-smart-filters-rozer .amf-switch input:focus-visible + i {
  outline: 2px solid var(--amf-accent);
  outline-offset: 2px;
}
body.accentmed-smart-filters-rozer .amf-filter-trigger {
  min-height: 42px;
  padding: 0 15px;
  border-color: var(--amf-accent);
  border-radius: 99px;
  background: var(--amf-accent);
  color: #fff;
}
body.accentmed-smart-filters-rozer .amf-filter-trigger svg circle { fill: var(--amf-accent); }
body.accentmed-smart-filters-rozer .amf-filter-trigger:hover { background: var(--amf-accent-dark); color: #fff; }
body.accentmed-smart-filters-rozer .amf-filter-trigger:hover svg circle { fill: var(--amf-accent-dark); }
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel__header {
  padding: calc(20px + env(safe-area-inset-top)) 18px 18px;
}
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel__header-actions {
  top: calc(14px + env(safe-area-inset-top));
  flex-direction: row;
  align-items: center;
  gap: 7px;
}
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel__close {
  border: 0;
  background: var(--amf-soft);
}
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-option { min-height: 44px; }
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-rozer-drawer .amf-panel { background: var(--amf-soft); }
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel .amf-mobile-apply {
  align-self: center;
  width: calc(100% - 28px);
  min-height: 48px;
  margin: 12px 14px calc(12px + env(safe-area-inset-bottom));
  padding: 12px 16px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
}
body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-panel.amf-has-pending .amf-mobile-apply strong { display: none; }

/* Keep the count, filter button and sorting on one compact phone row. */
@media (max-width: 600px) {
  body.accentmed-smart-filters-rozer .amf-results-bar {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 10px;
  }
  body.accentmed-smart-filters-rozer .amf-results-count {
    flex: 0 0 auto;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
  body.accentmed-smart-filters-rozer .amf-results-count strong { font-size: 14px; }
  body.accentmed-smart-filters-rozer .amf-results-bar__actions,
  body.accentmed-smart-filters-rozer.amf-responsive-drawer .amf-results-bar__actions {
    flex: 1 1 0;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto;
    min-width: 0;
  }
  body.accentmed-smart-filters-rozer .amf-filter-trigger {
    flex: 0 0 auto;
    gap: 5px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }
  body.accentmed-smart-filters-rozer .amf-filter-trigger svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
  }
  body.accentmed-smart-filters-rozer .amf-sort {
    flex: 1 1 0;
    min-width: 0;
    max-width: 180px;
  }
  body.accentmed-smart-filters-rozer .amf-sort select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 36px;
    padding: 0 24px 0 7px;
    /* Override the child theme's 16px rule for this compact selector only. */
    font-size: 12px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
