/* Loaded LAST — fixes search collapse, category tile width, footer parity */

/* Sticky header is taller than default theme (topbar + main). Fallbacks until JS measures. */
body.pd-body {
  --am-header-h: 118px;
}
body.pd-body.pd-panel {
  --am-header-h: 96px;
}

/* Sticky sidebars must sit below the sticky PD header */
body.pd-body .am-product-sidebar,
body.pd-body .am-sidebar-card,
body.pd-body .am-profile-banner,
body.pd-body .am-events-sidebar__sticky {
  top: calc(var(--am-header-h, 118px) + 0.75rem) !important;
  z-index: 5;
}
body.pd-body .am-product-sidebar {
  max-height: calc(100vh - var(--am-header-h, 118px) - 1.5rem) !important;
}
body.pd-body .pd-estore-header {
  z-index: 1030;
}

/* Header row: flex (not grid) so the search always gets remaining width */
body.pd-body .pd-estore-main__inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 1rem 1.5rem !important;
  max-width: 1400px !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

body.pd-body .pd-estore-topbar__inner,
body.pd-body .pd-estore-catnav__inner {
  max-width: 1400px !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

body.pd-body .pd-estore-brand {
  flex: 0 0 auto !important;
}

body.pd-body .pd-estore-brand img {
  max-height: 44px !important;
  width: auto !important;
}

body.pd-body .pd-estore-actions {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}

/* Keep header actions visible on desktop even if page CSS fights Bootstrap utilities */
@media (min-width: 992px) {
  body.pd-body .pd-estore-actions > .pd-estore-action--wishlist,
  body.pd-body .pd-estore-actions > .pd-estore-notify,
  body.pd-body .pd-estore-actions > .pd-estore-account-dropdown,
  body.pd-body .pd-estore-actions > .pd-estore-create-btn,
  body.pd-body .pd-estore-actions > .pd-estore-register-btn,
  body.pd-body .pd-estore-actions > .pd-btn {
    display: inline-flex !important;
  }
  body.pd-body .pd-estore-actions > .pd-estore-action--menu {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  body.pd-body .pd-estore-actions > .pd-estore-action--wishlist,
  body.pd-body .pd-estore-actions > .pd-estore-notify,
  body.pd-body .pd-estore-actions > .pd-estore-account-dropdown,
  body.pd-body .pd-estore-actions > .pd-estore-create-btn,
  body.pd-body .pd-estore-actions > .pd-estore-register-btn,
  body.pd-body .pd-estore-actions > a.pd-btn {
    display: none !important;
  }
  body.pd-body .pd-estore-actions > .pd-estore-action--menu {
    display: inline-flex !important;
  }
}

/* Compact header action cluster: wishlist / bell / account / create */
body.pd-body .pd-estore-actions > .pd-estore-action--wishlist {
  padding: 0.3rem 0.45rem !important;
  gap: 0.3rem !important;
  font-size: 0.8rem !important;
}
body.pd-body .pd-estore-actions > .pd-estore-action--wishlist i {
  font-size: 1.05rem !important;
}
body.pd-body .pd-estore-actions .pd-estore-notify {
  margin: 0 !important;
}
body.pd-body .pd-estore-actions .pd-estore-account-dropdown {
  margin: 0 !important;
}
body.pd-body .pd-estore-actions .pd-estore-create-btn,
body.pd-body .pd-estore-actions .pd-estore-account-btn,
body.pd-body .pd-estore-actions .pd-estore-register-btn {
  font-size: 0.8rem !important;
  min-height: 2rem;
  height: 2rem;
  box-sizing: border-box;
}
body.pd-body .pd-estore-actions .pd-estore-account-btn {
  padding: 0.2rem 0.65rem 0.2rem 0.3rem !important;
  gap: 0.3rem !important;
  border-width: 1.5px !important;
}
body.pd-body .pd-estore-actions .pd-estore-create-btn,
body.pd-body .pd-estore-actions .pd-estore-register-btn {
  padding: 0.2rem 0.75rem !important;
  gap: 0.28rem !important;
}
body.pd-body .pd-estore-actions .pd-estore-account-btn .pd-estore-action__avatar {
  width: 1.3rem;
  height: 1.3rem;
}

@media (max-width: 1199.98px) {
  body.pd-body .pd-estore-actions {
    gap: 0.22rem !important;
  }
  body.pd-body .pd-estore-actions > .pd-estore-action--wishlist .pd-estore-action__label {
    display: none !important;
  }
  body.pd-body .pd-estore-actions .pd-estore-account-btn .pd-estore-action__label {
    max-width: 6.5rem;
  }
  body.pd-body .pd-estore-actions .pd-estore-create-btn,
  body.pd-body .pd-estore-actions .pd-estore-account-btn,
  body.pd-body .pd-estore-actions .pd-estore-register-btn {
    font-size: 0.76rem !important;
    min-height: 1.85rem;
    height: 1.85rem;
  }
  body.pd-body .pd-estore-actions .pd-estore-create-btn,
  body.pd-body .pd-estore-actions .pd-estore-register-btn {
    padding: 0.15rem 0.65rem !important;
  }
  body.pd-body .pd-estore-actions .pd-estore-account-btn {
    padding: 0.15rem 0.55rem 0.15rem 0.25rem !important;
  }
}

@media (max-width: 991.98px) {
  body.pd-body .pd-estore-actions {
    gap: 0.15rem !important;
  }
}

body.pd-body .pd-estore-search,
body.pd-body form#pd-header-search,
body.pd-body .pd-estore-search.pd-estore-search--fullwidth,
body.pd-body .pd-estore-search.shop-header-search--navbar {
  display: flex !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 18rem !important;
  max-width: none !important;
  align-items: stretch !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.pd-body .pd-estore-search__input,
body.pd-body #pd-estore-search-input,
body.pd-body .pd-estore-search input[type="search"] {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 10rem !important;
  max-width: none !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  padding: 0.72rem 1.15rem !important;
  color: var(--pd-text) !important;
  background: transparent !important;
  border: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

body.pd-body .pd-estore-search__btn {
  flex: 0 0 3.1rem !important;
  width: 3.1rem !important;
  min-width: 3.1rem !important;
}

@media (max-width: 767.98px) {
  body.pd-body .pd-estore-main__inner {
    flex-wrap: wrap !important;
  }
  body.pd-body .pd-estore-search,
  body.pd-body form#pd-header-search {
    flex: 1 1 100% !important;
    order: 3 !important;
    min-width: 100% !important;
  }
}

/* Topbar: USPs + Theme/Lang mittig zusammen */
body.pd-body .pd-estore-topbar__inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem 1.75rem !important;
  padding: 0.22rem 1rem !important;
  min-height: 0 !important;
}
body.pd-body .pd-estore-topbar__usps {
  display: flex !important;
  flex: 0 1 auto !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body.pd-body .pd-estore-topbar__utils {
  display: flex !important;
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}
body.pd-body .pd-estore-topbar__btn,
body.pd-body .pd-estore-topbar__btn i,
body.pd-body .pd-estore-topbar__btn .bi {
  color: #fff !important;
}

/* Mega-Menü: volle Content-Breite (rechts bündig mit Header-Aktionen / Registrieren) */
body.pd-body .pd-estore-catnav__inner,
body.pd-body .pd-estore-catnav__row {
  position: relative;
}
body.pd-body .pd-estore-mega {
  position: static;
}
body.pd-body .pd-estore-mega__panel {
  padding: 0.85rem 1rem !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
/* Hover-Brücke unter dem Trigger über die volle Leiste */
body.pd-body .pd-estore-mega::after {
  left: 0;
  width: 100%;
  max-width: none;
}
body.pd-body .pd-estore-mega__layout {
  gap: 1rem !important;
}
@media (min-width: 768px) {
  body.pd-body .pd-estore-mega__layout {
    grid-template-columns: minmax(0, 1fr) 12.5rem !important;
  }
}
body.pd-body .pd-estore-mega__label {
  margin: 0 0 0.45rem !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.1em !important;
}
body.pd-body .pd-estore-mega__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.35rem 0.65rem !important;
  align-items: start !important;
}
@media (min-width: 768px) {
  body.pd-body .pd-estore-mega__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 992px) {
  body.pd-body .pd-estore-mega__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.25rem 0.5rem !important;
  }
}
body.pd-body .pd-estore-mega__link {
  padding: 0.2rem 0.3rem !important;
  font-size: 0.82rem !important;
}
body.pd-body .pd-estore-mega__link--parent {
  font-size: 0.86rem !important;
  margin-bottom: 0.05rem !important;
  padding-left: 0.25rem !important;
}
body.pd-body .pd-estore-mega__link--child {
  font-size: 0.78rem !important;
  padding-left: 0.45rem !important;
}
body.pd-body .pd-estore-mega__children {
  gap: 0 !important;
}
body.pd-body .pd-estore-mega__aside {
  padding: 0.75rem !important;
}
body.pd-body .pd-estore-mega__aside-title {
  font-size: 0.9rem !important;
  margin: 0 0 0.35rem !important;
}
body.pd-body .pd-estore-mega__aside-lead {
  font-size: 0.78rem !important;
  margin: 0 0 0.65rem !important;
}
body.pd-body .pd-estore-mega__aside .pd-btn {
  width: 100%;
  justify-content: center;
}
body.pd-body .pd-estore-mega__aside .pd-btn--outline:hover,
body.pd-body .pd-estore-mega__aside .pd-btn--outline:focus-visible,
body.pd-body .pd-estore-mega__aside .pd-btn--ghost:hover,
body.pd-body .pd-estore-mega__aside .pd-btn--ghost:focus-visible {
  background: var(--pd-primary) !important;
  color: #fff !important;
  border-color: var(--pd-primary) !important;
}
/* Narrow ScriptFabrik-style category tiles */
body.pd-body .pd-estore-categories__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
  justify-items: center !important;
}
@media (min-width: 576px) {
  body.pd-body .pd-estore-categories__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 992px) {
  body.pd-body .pd-estore-categories__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1200px) {
  body.pd-body .pd-estore-categories__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }
}
body.pd-body .pd-estore-cat-tile {
  width: 100% !important;
  max-width: 8.75rem !important;
  padding: 0.85rem 0.4rem !important;
  box-sizing: border-box !important;
}
body.pd-body .pd-estore-categories--expandable .pd-estore-categories__details {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
@media (min-width: 992px) {
  body.pd-body .pd-estore-categories__details {
    display: contents !important;
  }
  body.pd-body .pd-estore-categories__details > summary {
    display: none !important;
  }
}

/* Footer + copyright = same navy as topbar */
body.pd-body .am-footer,
body.pd-body .am-footer__bottom,
body.pd-body .am-footer-part,
body.pd-body .am-footer--compact {
  background: var(--pd-secondary) !important;
  background-image: none !important;
}
body.pd-body .am-footer::before {
  display: none !important;
}

/* —— Umkreissuche Seite —— */
body.pd-body .pd-umkreis-page {
  padding: 1.75rem 1.25rem 3.5rem;
}
body.pd-body .pd-umkreis-page__inner {
  max-width: 1120px;
  margin: 0 auto;
}
body.pd-body .pd-umkreis-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-primary);
}
body.pd-body .pd-umkreis-page__title {
  margin: 0 0 0.5rem;
  font-family: var(--pd-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--pd-text);
}
body.pd-body .pd-umkreis-page__lead {
  margin: 0 0 1.35rem;
  color: var(--pd-muted);
  font-size: 1.02rem;
  max-width: 40rem;
}
body.pd-body .pd-umkreis-page__card {
  background: var(--pd-card);
  border-radius: calc(var(--pd-radius) * 1.5);
  box-shadow: var(--pd-shadow);
  border: 1px solid color-mix(in srgb, var(--pd-text) 8%, transparent);
  padding: 1.5rem 1.5rem 1.75rem !important;
  overflow: visible !important;
}
body.pd-body .pd-umkreis-page .am-hero {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
body.pd-body .pd-umkreis-page .am-hero::before {
  display: none !important;
}
body.pd-body .pd-umkreis-page .am-hero__head {
  display: none !important;
}
body.pd-body .pd-umkreis-page .am-search-tabs {
  margin-bottom: 1.15rem;
  background: color-mix(in srgb, var(--pd-primary) 8%, var(--pd-bg)) !important;
}
body.pd-body .pd-umkreis-page .am-search-tabs__btn {
  color: var(--pd-text) !important;
}
body.pd-body .pd-umkreis-page .am-search-tabs__btn.is-active {
  background: var(--pd-primary) !important;
  border-color: var(--pd-primary) !important;
  color: #fff !important;
}
body.pd-body .pd-umkreis-page .am-search,
body.pd-body .pd-umkreis-page .am-live-search {
  gap: 0.85rem !important;
  margin: 0 !important;
  padding: 0 0 0.15rem !important;
}
body.pd-body .pd-umkreis-page .am-search__input,
body.pd-body .pd-umkreis-page .am-search__select {
  background: var(--pd-bg) !important;
  border: 1px solid color-mix(in srgb, var(--pd-text) 12%, transparent) !important;
  box-shadow: none !important;
  color: var(--pd-text) !important;
}
body.pd-body .pd-umkreis-page .am-search__input:focus,
body.pd-body .pd-umkreis-page .am-search__select:focus {
  border-color: var(--pd-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pd-primary) 18%, transparent) !important;
}
body.pd-body .pd-umkreis-page .am-search__btn {
  background: var(--pd-primary) !important;
  border-color: var(--pd-primary) !important;
  box-shadow: none !important;
  margin: 0 !important;
  align-self: stretch !important;
}
body.pd-body .pd-umkreis-page .am-search__btn:hover {
  background: var(--pd-hover) !important;
  transform: none !important;
}
body.pd-body .pd-umkreis-page .am-search-panels {
  padding-bottom: 0.25rem;
}
body.pd-body .pd-umkreis-page #am-hero-search {
  display: block !important;
}
body.pd-body .pd-estore-hero__actions {
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* —— Account dropdown + create button —— */
body.pd-body .pd-estore-account-dropdown {
  position: relative !important;
  z-index: 5;
}
body.pd-body .pd-estore-account-dropdown .dropdown-toggle::after {
  margin-left: 0.25rem;
  vertical-align: 0.15em;
}
body.pd-body .pd-estore-header,
body.pd-body .pd-estore-main,
body.pd-body .pd-estore-main__inner,
body.pd-body .pd-estore-actions,
body.pd-body .pd-estore-panel-tools,
body.pd-body .pd-estore-account-dropdown {
  overflow: visible !important;
}
/* Click-only Bootstrap dropdown — always below the trigger button */
body.pd-body .pd-estore-account-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle;
}
body.pd-body .pd-estore-account-dropdown__menu,
body.pd-body .pd-estore-account-dropdown__menu.show,
body.pd-body .pd-estore-account-dropdown__menu[data-bs-popper],
body.pd-body .pd-estore-account-dropdown__menu[data-bs-popper="static"] {
  position: absolute !important;
  /* top | right | bottom | left — must sit below the button */
  inset: calc(100% + 0.4rem) 0 auto auto !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
  z-index: 1085 !important;
  min-width: 17rem;
  max-width: min(100vw - 1rem, 22rem);
  max-height: none !important;
  overflow: visible !important;
  padding: 0.45rem !important;
  border: 1px solid color-mix(in srgb, var(--pd-text) 10%, transparent) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16) !important;
  background: var(--pd-card) !important;
}
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  border-radius: 8px;
  padding: 0.55rem 0.75rem !important;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--pd-text) !important;
  white-space: nowrap;
}
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item i,
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item .fas,
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item .far,
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item .bi {
  width: 1.1rem;
  text-align: center;
  color: var(--pd-primary);
  opacity: 0.9;
}
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item:hover,
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item:focus {
  background: color-mix(in srgb, var(--pd-primary) 10%, var(--pd-bg)) !important;
  color: var(--pd-primary) !important;
}
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item.text-danger,
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item.text-danger i {
  color: #dc2626 !important;
}
body.pd-body .pd-estore-account-dropdown__menu .dropdown-item.text-danger:hover {
  background: color-mix(in srgb, #dc2626 10%, var(--pd-bg)) !important;
}
body.pd-body .pd-estore-account-dropdown__menu .dropdown-divider {
  margin: 0.35rem 0;
  border-color: color-mix(in srgb, var(--pd-text) 10%, transparent);
}
body.pd-body .pd-estore-account-dropdown__menu .am-header__dropdown-item--create {
  background: color-mix(in srgb, var(--pd-primary) 10%, var(--pd-card));
  color: var(--pd-primary) !important;
  font-weight: 700 !important;
}
body.pd-body .pd-estore-account-dropdown__menu .am-header__dropdown-item--create:hover {
  background: var(--pd-primary) !important;
  color: #fff !important;
}
body.pd-body .pd-estore-account-dropdown__menu .am-header__dropdown-item--create:hover i {
  color: #fff !important;
}
body.pd-body .pd-estore-account-dropdown__menu .am-dropdown-kicker {
  font-size: 0.68rem;
  opacity: 0.65;
  font-weight: 600;
}

body.pd-body .pd-estore-account-dropdown.show,
body.pd-body .pd-estore-account-dropdown:has(.dropdown-menu.show) {
  z-index: 1090 !important;
}
body.pd-body.pd-panel .pd-estore-header {
  z-index: 1040;
}

body.pd-body .pd-estore-create-btn {
  white-space: nowrap;
  gap: 0.28rem;
  padding: 0.2rem 0.75rem !important;
  box-shadow: none;
}
body.pd-body .pd-estore-register-btn {
  white-space: nowrap;
  gap: 0.28rem;
  padding: 0.2rem 0.75rem !important;
  box-shadow: none;
  font-weight: 700;
  line-height: 1.2;
  min-height: 2rem;
  height: 2rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.pd-body .pd-estore-account-btn {
  white-space: nowrap;
  gap: 0.3rem !important;
  padding: 0.2rem 0.65rem 0.2rem 0.3rem !important;
  box-shadow: none;
  font-weight: 700;
  line-height: 1.2;
  background: var(--pd-card) !important;
  border: 1.5px solid color-mix(in srgb, var(--pd-primary) 45%, transparent) !important;
  color: var(--pd-primary) !important;
}
body.pd-body .pd-estore-account-btn:hover,
body.pd-body .pd-estore-account-btn:focus-visible,
body.pd-body .pd-estore-account-btn.show {
  background: var(--pd-primary) !important;
  border-color: var(--pd-primary) !important;
  color: #fff !important;
}
body.pd-body .pd-estore-account-btn .pd-estore-action__avatar {
  width: 1.3rem;
  height: 1.3rem;
  border-color: color-mix(in srgb, var(--pd-primary) 35%, transparent);
}
body.pd-body .pd-estore-account-btn:hover .pd-estore-action__avatar,
body.pd-body .pd-estore-account-btn.show .pd-estore-action__avatar {
  border-color: rgba(255, 255, 255, 0.55);
}
body.pd-body .pd-estore-account-btn .pd-estore-action__label {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.pd-body .pd-estore-account-btn.dropdown-toggle::after {
  margin-left: 0.1rem;
  vertical-align: 0.12em;
  border-top-color: currentColor;
  opacity: 0.85;
}
body.pd-body .pd-estore-action--account-logged-in .pd-estore-action__label {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Panel / Kundenbereich —— */
body.pd-body.pd-panel .pd-estore-main__inner--panel {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem 1rem !important;
}
body.pd-body.pd-panel .pd-estore-brand {
  flex: 0 0 auto !important;
}
body.pd-body.pd-panel .pd-estore-panel-tools {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.45rem 0.65rem !important;
  margin-left: auto !important;
}
body.pd-body.pd-panel .pd-panel-nav--inline {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.pd-body.pd-panel .pd-panel-nav--inline .pd-panel-nav__inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  gap: 0.35rem !important;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
body.pd-body.pd-panel .pd-estore-actions--panel {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}
body.pd-body.pd-panel .pd-estore-actions--panel .pd-estore-create-btn,
body.pd-body.pd-panel .pd-estore-actions--panel .pd-estore-account-dropdown {
  display: inline-flex !important;
  position: relative !important;
  align-items: center;
  vertical-align: middle;
}
body.pd-body.pd-panel .pd-estore-actions--panel .pd-estore-account-dropdown {
  z-index: 30;
}
body.pd-body.pd-panel .pd-estore-actions--panel .pd-estore-account-dropdown__menu.show {
  display: block !important;
  inset: calc(100% + 0.4rem) 0 auto auto !important;
  margin: 0 !important;
  transform: none !important;
}
body.pd-body .pd-panel-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pd-text) 12%, transparent);
  background: var(--pd-bg);
  color: var(--pd-text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
body.pd-body .pd-panel-nav__link:hover {
  border-color: var(--pd-primary);
  color: var(--pd-primary);
  background: color-mix(in srgb, var(--pd-primary) 8%, var(--pd-card));
}
body.pd-body .pd-panel-nav__link.is-active {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  color: #fff;
}
@media (max-width: 991.98px) {
  body.pd-body.pd-panel .pd-estore-main__inner--panel {
    flex-wrap: wrap !important;
  }
  body.pd-body.pd-panel .pd-estore-panel-tools {
    flex: 1 1 100% !important;
    order: 3;
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }
  body.pd-body.pd-panel .pd-panel-nav--inline .pd-panel-nav__inner {
    justify-content: flex-start !important;
  }
}

/* Spacing: header → breadcrumb / panel content */
body.pd-body.pd-panel .am-main--panel {
  padding-top: 1.75rem !important;
}
body.pd-body.pd-panel .am-main--panel > .am-breadcrumb,
body.pd-body.pd-panel .am-main--panel .am-breadcrumb--page,
body.pd-body.pd-panel .am-my-ads-page > .am-breadcrumb,
body.pd-body.pd-panel .am-account-page > .am-breadcrumb,
body.pd-body.pd-panel .am-edit-ad-page > .am-breadcrumb,
body.pd-body.pd-panel .am-merkliste-page > .am-breadcrumb {
  margin-top: 0.5rem !important;
  margin-bottom: 1.25rem !important;
  padding-top: 0.25rem;
}

/* —— Notification bell in PD header —— */
body.pd-body .pd-estore-notify {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 6;
  flex-shrink: 0;
}
body.pd-body .pd-estore-notify .am-header__notify-btn {
  width: 1.85rem !important;
  height: 1.85rem !important;
  min-width: 1.85rem !important;
  max-width: 1.85rem !important;
  min-height: 1.85rem !important;
  max-height: 1.85rem !important;
  aspect-ratio: 1 / 1;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--pd-text) 12%, transparent);
  background: var(--pd-card);
  color: var(--pd-text);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0;
  position: relative;
  line-height: 1 !important;
  box-sizing: border-box;
  overflow: visible;
}
body.pd-body .pd-estore-notify .am-header__notify-btn:hover,
body.pd-body .pd-estore-notify .am-header__notify-btn:focus-visible,
body.pd-body .pd-estore-notify .am-header__notify-btn.show {
  border-color: var(--pd-primary);
  color: var(--pd-primary);
  background: color-mix(in srgb, var(--pd-primary) 8%, var(--pd-card));
}
/* Bootstrap caret would squash the glyph into an "egg" */
body.pd-body .pd-estore-notify .am-header__notify-btn.dropdown-toggle::after {
  display: none !important;
  content: none !important;
  margin: 0 !important;
  border: 0 !important;
}
body.pd-body .pd-estore-notify .am-header__notify-btn i,
body.pd-body .pd-estore-notify .am-header__notify-btn .bi {
  font-size: 0.92rem !important;
  line-height: 1 !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  flex: 0 0 auto;
  transform: none !important;
  vertical-align: middle;
}
body.pd-body .pd-estore-notify .am-header__notify-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--pd-card);
}
body.pd-body .pd-estore-notify .am-notify-panel {
  min-width: 18rem;
  max-width: min(100vw - 1rem, 22rem);
  margin-top: 0.4rem !important;
  border-radius: 12px !important;
  border: 1px solid color-mix(in srgb, var(--pd-text) 10%, transparent) !important;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16) !important;
  padding: 0 !important;
  overflow: hidden;
}
