/* ==========================================================================
   Hummingbird MD — visual layer for modny-dzieciak.pl
   Loaded AFTER assets/css/theme.css (so it wins on equal specificity).
   Base Hummingbird / Bootstrap 5.3 markup is untouched.

   Direction: airy, light retail look in the spirit of lazienkaplus.pl —
   pill search + pill CTAs, borderless product cards on lots of whitespace,
   thin hairlines, ~1200px column, sentence-case medium-weight headings,
   calm hover-only shadows. Brand colours kept (coral #F15C54, warm orange
   #F8A43F); web font is Roboto (see --md-font).
   ========================================================================== */

:root,
[data-bs-theme='light'] {
  /* --- brand tokens (colours unchanged) --- */
  --md-primary: #f15c54;
  --md-primary-600: #e24c44;
  --md-primary-700: #c63f38;
  --md-primary-050: #fff2f1;
  --md-accent: #f8a43f;
  --md-sale: #f15922;
  --md-success: #46a74e;

  /* text: cool near-navy dark, not black — reads lighter like lazienkaplus */
  --md-ink: #3b3f4c;
  --md-heading: #2b2f3b;
  --md-muted: #5f6470;

  --md-bg: #ffffff;
  --md-bg-soft: #f6f7f9;
  --md-border: #ededf1;
  --md-border-strong: #dcdee4;

  /* --- geometry: soft-rounded panels, pill search & CTAs --- */
  --md-radius: 8px;
  --md-radius-sm: 6px;
  --md-radius-lg: 12px;
  --md-radius-pill: 999px;

  --md-shadow-xs: 0 1px 3px rgba(22, 27, 40, .05);
  --md-shadow: 0 8px 30px rgba(22, 27, 40, .08);
  --md-shadow-lg: 0 18px 44px rgba(22, 27, 40, .14);

  --md-container: 1208px;
  /* switch web font here + in _partials/head.tpl (Google Fonts link). */
  --md-font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --md-heading-weight: 700;
  --md-transition: .18s ease;

  /* --- remap Bootstrap --- */
  --bs-primary: var(--md-primary);
  --bs-primary-rgb: 241, 92, 84;
  --bs-primary-text-emphasis: var(--md-primary-700);
  --bs-primary-bg-subtle: var(--md-primary-050);
  --bs-primary-border-subtle: #f6c9c5;
  --bs-link-color: var(--md-primary-700);
  --bs-link-color-rgb: 198, 63, 56;
  --bs-link-hover-color: var(--md-primary-600);
  --bs-body-color: var(--md-ink);
  --bs-body-color-rgb: 59, 63, 76;
  --bs-body-font-family: var(--md-font);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.6;
  --bs-border-radius: var(--md-radius);
  --bs-border-radius-sm: var(--md-radius-sm);
  --bs-border-radius-lg: var(--md-radius-lg);
  --bs-border-radius-xl: var(--md-radius-lg);
  --bs-border-radius-pill: var(--md-radius-pill);
  --bs-border-color: var(--md-border);
  --bs-emphasis-color: var(--md-heading);
  --bs-secondary-color: var(--md-muted);
}

/* ==========================================================================
   1. Base / typography
   ========================================================================== */

body {
  font-family: var(--md-font);
  color: var(--md-ink);
  background: var(--md-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--md-font);
  font-weight: var(--md-heading-weight);
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--md-heading);
}

.h1, h1 { font-weight: var(--md-heading-weight); }

a { text-underline-offset: 3px; }

/* ~1200px content column, lazienkaplus-style */
.container,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  max-width: min(100% - 2rem, var(--md-container));
}

/* keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(241, 92, 84, .4);
  outline-offset: 2px;
  border-radius: var(--md-radius-sm);
}

/* ==========================================================================
   2. Buttons — pill CTAs, sentence case, generous padding (lazienkaplus)
   ========================================================================== */

.btn {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color var(--md-transition), border-color var(--md-transition), color var(--md-transition);
}

.btn-primary:not(.btn-square-icon),
.btn-secondary:not(.btn-square-icon),
.btn-tertiary:not(.btn-square-icon),
.btn-outline-primary:not(.btn-square-icon),
.btn-outline-secondary:not(.btn-square-icon),
.add-to-cart:not(.btn-square-icon) {
  border-radius: var(--md-radius-pill);
  padding-inline: 1.7em;
}

.input-group .btn,
.quantity-button__group .btn,
.bootstrap-touchspin .btn,
.btn-square-icon,
.btn-group .btn {
  border-radius: var(--md-radius-sm);
}

.btn-primary {
  --bs-btn-bg: var(--md-primary);
  --bs-btn-border-color: var(--md-primary);
  --bs-btn-hover-bg: var(--md-primary-600);
  --bs-btn-hover-border-color: var(--md-primary-600);
  --bs-btn-active-bg: var(--md-primary-700);
  --bs-btn-active-border-color: var(--md-primary-700);
  --bs-btn-disabled-bg: #f4b8b4;
  --bs-btn-disabled-border-color: #f4b8b4;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: none;
  transform: none;
}

.btn-secondary,
.btn-outline-secondary {
  --bs-btn-color: var(--md-ink);
  --bs-btn-border-color: var(--md-border-strong);
  --bs-btn-hover-bg: var(--md-bg-soft);
  --bs-btn-hover-border-color: #c6cad2;
  --bs-btn-hover-color: var(--md-ink);
}

.btn-outline-primary {
  --bs-btn-color: var(--md-primary-700);
  --bs-btn-border-color: var(--md-primary);
  --bs-btn-hover-bg: var(--md-primary);
  --bs-btn-hover-border-color: var(--md-primary);
}

/* ==========================================================================
   3. Header — clean white, thin tiers
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--md-border);
  transition: box-shadow var(--md-transition);
}

.header.md-scrolled {
  box-shadow: 0 4px 18px rgba(22, 27, 40, .07);
}

/* tier 0 — promo strip: text left, language + currency dropdowns right */
.header-promo {
  background: var(--md-heading);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2px;
}

.header-promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
  padding-block: .3rem;
}

.header-promo__text { margin: 0; }

.header-promo a { color: #fff; text-decoration: underline; }
.header-promo strong { color: var(--md-accent); font-weight: 700; }

/* the two selectors as slim dropdowns on the dark bar */
.header-promo__selectors {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 0 0 auto;
}

.header-promo__selectors .ps-languageselector,
.header-promo__selectors .ps-currencyselector { margin: 0; }

/* the original <select> stays for no-JS / screen readers, hidden otherwise */
.md-select__native {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* fallback: no JS → keep a usable plain select on the dark bar */
.no-js .header-promo__selectors select,
.header-promo__selectors .ps-languageselector select:not(.md-select__native),
.header-promo__selectors .ps-currencyselector select:not(.md-select__native) {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--md-radius-sm);
  color: #fff;
  font-size: .78rem;
  padding: .2rem .4rem;
}

/* custom dropdown — identical look for both selectors */
.md-select { position: relative; }

.md-select__toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 0;
  border-radius: var(--md-radius-sm);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  padding: .3rem .5rem;
  cursor: pointer;
  transition: background-color var(--md-transition);
}
.md-select__toggle:hover,
.md-select--open .md-select__toggle { background: rgba(255, 255, 255, .14); }
.md-select__toggle:focus-visible { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 1px; }

.md-select__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--md-transition);
}
.md-select--open .md-select__caret { transform: rotate(180deg); }

.md-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--md-transition), transform var(--md-transition), visibility var(--md-transition);
  z-index: 1050;
}
.md-select--open .md-select__menu { opacity: 1; visibility: visible; transform: none; }

.md-select__item {
  padding: .4rem .7rem;
  border-radius: var(--md-radius-sm);
  font-size: .82rem;
  font-weight: 500;
  color: var(--md-ink);
  white-space: nowrap;
  cursor: pointer;
}
.md-select__item:hover { background: var(--md-bg-soft); color: var(--md-primary-700); }
.md-select__item.is-current { color: var(--md-primary-700); font-weight: 700; }

@media (max-width: 575.98px) {
  .header-promo__inner { flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
  .header-promo__text { flex: 1 1 100%; text-align: center; }
}

/* language / currency selectors inside the mobile navigation drawer.
   On < 768 px the responsive script moves the promo-bar selectors into these
   offcanvas placeholders — style them for the light drawer and let the JS
   re-enhance them as .md-select dropdowns. */
.ps-mainmenu--mobile.offcanvas { display: flex; flex-direction: column; }
.ps-mainmenu__mobile.offcanvas-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ps-mainmenu__additionnals {
  flex: 0 0 auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--md-border);
}
.ps-mainmenu__additionnals .ps-mainmenu__selects {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
}
.ps-mainmenu__selects > div { flex: 1 1 45%; min-width: 8rem; }
.ps-mainmenu__additionnals .md-select { display: block; width: 100%; }
.ps-mainmenu__additionnals .md-select__toggle {
  width: 100%;
  justify-content: space-between;
  color: var(--md-ink);
  border: 1px solid var(--md-border-strong);
  border-radius: var(--md-radius-sm);
  padding: .55rem .8rem;
  font-size: .9rem;
}
.ps-mainmenu__additionnals .md-select__toggle:hover,
.ps-mainmenu__additionnals .md-select--open .md-select__toggle { background: var(--md-bg-soft); }
.ps-mainmenu__additionnals .md-select__toggle:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 1px; }
.ps-mainmenu__additionnals .md-select__caret { border-top-color: var(--md-muted); }
.ps-mainmenu__additionnals .md-select__menu {
  position: static;
  margin-top: .35rem;
  border-color: var(--md-border);
  box-shadow: none;
  max-height: 40vh;
  overflow-y: auto;
}
/* plain <select> fallback when JS is off */
.ps-mainmenu__additionnals select:not(.md-select__native) {
  width: 100%;
  min-height: 44px;
  padding: .4rem .6rem;
  background: #fff;
  color: var(--md-ink);
  border: 1px solid var(--md-border-strong);
  border-radius: var(--md-radius-sm);
}

@media (max-width: 767.98px) {
  /* the promo-bar copies are emptied by the responsive script on mobile */
  .header-promo__selectors { display: none; }
}

/* ---- header cart dropdown (mini-cart) ---- */
.header-bottom__utility .md-cart { position: relative; }
.header-bottom__utility .md-cart .blockcart { position: static; }

.md-cart__dd {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  padding: .9rem;
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--md-transition), transform var(--md-transition), visibility var(--md-transition);
  z-index: 1051;
  text-align: left;
}
.md-cart--open .md-cart__dd { opacity: 1; visibility: visible; transform: none; }

.md-cart__dd::before {              /* little pointer */
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 11px;
  height: 11px;
  background: #fff;
  border-left: 1px solid var(--md-border);
  border-top: 1px solid var(--md-border);
  transform: rotate(45deg);
}

.md-cart__empty { margin: .4rem 0; color: var(--md-muted); font-weight: 500; text-align: center; }

.md-cart__list {
  list-style: none;
  margin: 0 0 .7rem;
  padding: 0;
  max-height: 46vh;
  overflow-y: auto;
}
.md-cart__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .6rem;
  align-items: center;
  padding: .55rem 0;
}
.md-cart__item + .md-cart__item { border-top: 1px solid var(--md-border); }

.md-cart__thumb { display: block; }
.md-cart__thumb img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-sm);
  background: #fff;
}

.md-cart__info { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.md-cart__name {
  font-weight: 600;
  font-size: .82rem;
  color: var(--md-ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.md-cart__name:hover { color: var(--md-primary-700); }
.md-cart__attr { font-size: .72rem; color: var(--md-muted); }
.md-cart__qty { font-size: .78rem; font-weight: 700; color: var(--md-heading); margin-top: .1rem; }

.md-cart__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--md-radius-pill);
  color: var(--md-muted);
}
.md-cart__remove:hover { background: var(--md-primary-050); color: var(--md-sale); }
.md-cart__remove .material-icons { font-size: 1.05rem; }
.md-cart__remove.is-busy { opacity: .4; pointer-events: none; }

.md-cart__totals {
  border-top: 1px solid var(--md-border);
  padding-top: .6rem;
  margin-bottom: .7rem;
}
.md-cart__row {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: .12rem 0;
  color: var(--md-ink);
}
.md-cart__row--total { font-weight: 800; color: var(--md-heading); font-size: .95rem; padding-top: .3rem; }

.md-cart__actions { display: flex; gap: .5rem; }
.md-cart__actions .btn { flex: 1; border-radius: var(--md-radius-pill); }

@media (max-width: 767.98px) { .md-cart__dd { display: none; } }

.header .header-banner { text-align: center; }

.header-top { display: none; } /* strip removed — utility links moved into the logo row */

/* logo | search | ONE utility cluster (contact · register · sign-in · cart) */
.header-bottom__container { padding-block: 1.1rem; }

.header-bottom__row { align-items: center; }

/* search takes the middle, utility pinned right, all on one line (md+) */
@media (min-width: 768px) {
  .header-bottom__row #_desktop_ps_searchbar {
    order: 2;
    flex: 1 1 auto;
    margin: 0 1.75rem;
  }
}

/* mobile: search icon + cart sit to the right of the logo */
@media (max-width: 767.98px) {
  .header-bottom__row #_desktop_ps_searchbar { order: 2; margin-left: auto; }
  .header-bottom__row #_mobile_ps_shoppingcart { order: 3; }
}

.header-bottom__utility {
  order: 3;
  margin-left: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  column-gap: 1.4rem;
  white-space: nowrap;
}

/* unwrap the module containers */
.header-bottom__utility #_desktop_ps_customersignin,
.header-bottom__utility #_desktop_ps_shoppingcart,
.header-bottom__utility .ps-customersignin,
.header-bottom__utility .ps-shoppingcart,
.header-bottom__utility .header-block {
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

/* each item: icon stacked over a small label */
.header-bottom__utility .header-block__action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .16rem;
  padding: .2rem .35rem;
  min-width: 66px;
  color: var(--md-heading);
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color var(--md-transition);
}

.header-bottom__utility .header-block__action-btn:hover,
.header-bottom__utility .header-block__action-btn:hover .header-block__title {
  color: var(--md-primary-700);
}

.header-bottom__utility .header-block__icon,
.header-bottom__utility .material-icons {
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
  color: inherit;
}

.header-bottom__utility .header-block__title {
  display: block !important;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--md-muted);
}

/* cart count — small badge over the icon */
.header-bottom__utility .blockcart,
.header-bottom__utility .ps-shoppingcart .header-block { position: relative; }

.header-bottom__utility .header-block__badge {
  position: absolute;
  top: -3px;
  right: 8px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 .26rem;
  border: 2px solid #fff;
  background: var(--md-primary);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  border-radius: var(--md-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1199.98px) {
  .header-bottom__row #_desktop_ps_searchbar { margin: 0 1rem; }
  .header-bottom__utility { column-gap: .9rem; }
  .header-bottom__utility .header-block__action-btn { min-width: 58px; }
}

.header-bottom__logo img,
.header-bottom__logo .logo {
  max-height: 54px;
  width: auto;
}

/* search — full pill, thin light border, magnifier on the right */
.ps-searchbar,
#search_widget {
  flex: 1 1 46%;
  max-width: 640px;
}

.ps-searchbar__input.form-control {
  border-radius: var(--md-radius-pill);
  border: 1px solid var(--md-border-strong);
  background: #fff;
  height: 46px;
  padding: .6rem 3rem .6rem 1.3rem;
  font-weight: 500;
  transition: border-color var(--md-transition), box-shadow var(--md-transition);
}

.ps-searchbar__input.form-control:focus {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(241, 92, 84, .12);
}

.ps-searchbar__magnifier,
.ps-searchbar__controls {
  color: var(--md-primary);
  left: auto;
  right: .5rem;
}

.ps-searchbar__magnifier { right: 1.1rem; }

/* account / cart / wishlist — icon over tiny label */
.header-block__action-btn {
  border-radius: var(--md-radius);
  transition: background-color var(--md-transition), color var(--md-transition);
}

.header-block__action-btn:hover { background: var(--md-bg-soft); }
.header-block__label { font-weight: 500; font-size: .74rem; color: var(--md-muted); }

.header-block__icon,
.header-block__action-btn .material-icons { color: var(--md-heading); }

.header-block__badge {
  background: var(--md-primary);
  color: #fff;
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: var(--md-radius-pill);
}

/* ==========================================================================
   4. Main menu — thin bar on its own row, sentence case
   ========================================================================== */

/* desktop (xl+): the mega-menu bar gets its own full-width row */
@media (min-width: 1200px) {
  .header-bottom__row .ps-mainmenu.ps-mainmenu--desktop {
    order: 9;
    flex: 1 0 100%;
    max-width: 100%;
    width: 100%;
    border-top: 0;
    margin-top: .2rem;
  }
}

/* no divider line between the logo/search row and the category menu */
.header-bottom__row .ps-mainmenu--desktop,
.header-bottom__row .ps-mainmenu__desktop,
.header-nav-full-width,
.header-bottom .header-nav-full-width {
  border-top: 0 !important;
  box-shadow: none;
}

/* below xl: only the hamburger — keep it inline, first, same row as cart */
@media (max-width: 1199.98px) {
  .header-bottom__row .ps-mainmenu.ps-mainmenu--desktop {
    order: -1;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin: 0;
    border: 0;
  }

  .header-bottom__row .ps-mainmenu__mobile-toggle .menu-toggle {
    padding: .35rem;
    color: var(--md-heading);
  }

  /* account moves into the mobile menu — hide the standalone account icon */
  .header-bottom__row #_mobile_ps_customersignin { display: none !important; }
}

.ps-mainmenu__tree {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-mainmenu__tree-link {
  display: block;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  color: var(--md-heading);
  padding: .85rem .85rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color var(--md-transition), border-color var(--md-transition);
}

.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-link,
.ps-mainmenu__tree-item.current .ps-mainmenu__tree-link {
  color: var(--md-primary-700);
  background: transparent;
  border-bottom-color: var(--md-primary);
}

/* account links inside the mobile offcanvas nav */
.ps-mainmenu__account {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--md-border);
  padding: .35rem 0 .6rem;
  margin: 0 1rem .35rem;
}

.ps-mainmenu__account-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .25rem;
  font-weight: 600;
  color: var(--md-heading);
  text-decoration: none;
}

.ps-mainmenu__account-link:hover { color: var(--md-primary-700); }
.ps-mainmenu__account-link .material-icons { font-size: 1.35rem; color: var(--md-primary); }

/* mega / sub menu */
.js-sub-menu.submenu,
.header .js-sub-menu {
  border: 1px solid var(--md-border);
  border-radius: 0 0 var(--md-radius) var(--md-radius);
  box-shadow: var(--md-shadow-lg);
  background: #fff;
}

.submenu__left-item { font-weight: 600; color: var(--md-heading); }
.submenu__right-items a,
.submenu a { font-weight: 500; }
.submenu a:hover,
.submenu__left-item:hover { color: var(--md-primary-700); }

/* ==========================================================================
   5. Layout rhythm
   ========================================================================== */

#wrapper,
#main .page-content,
#content-wrapper { background: transparent; }

#main > .page-header h1,
.page-header .h1 { margin-bottom: 1.25rem; font-weight: 600; }

.breadcrumb {
  --bs-breadcrumb-bg: transparent;
  padding-inline: 0;
  font-weight: 500;
  font-size: .84rem;
}

.breadcrumb a { color: var(--md-muted); }
.breadcrumb .breadcrumb-item.active { color: var(--md-ink); }

/* ==========================================================================
   6. Trust badges (blockreassurance) — small, quiet row
   ========================================================================== */

.block-reassurance,
.reassurance {
  background: transparent;
  border-block: 1px solid var(--md-border);
}

.block-reassurance ul,
.block-reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem 2.75rem;
  padding: 1.15rem 1rem;
  list-style: none;
  margin: 0;
}

.block-reassurance li,
.reassurance-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 0;
  padding: 0;
  background: transparent !important;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--md-heading);
}

.block-reassurance li img,
.block-reassurance li svg,
.reassurance-item img {
  width: 24px;
  height: 24px;
  filter: none;
}

.block-reassurance li span,
.block-reassurance li p { margin: 0; }

/* ==========================================================================
   7. Product cards — lazienkaplus-style: no chrome at rest, airy image,
      soft shadow only on hover, rating above title, small struck old price
   ========================================================================== */

.product-miniature { height: 100%; }

.product-miniature__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: var(--md-radius);
  padding: .35rem;
  transition: box-shadow var(--md-transition), background-color var(--md-transition);
}

.product-miniature:hover .product-miniature__inner,
.product-miniature:focus-within .product-miniature__inner {
  background: #fff;
  box-shadow: var(--md-shadow);
}

/* image — big white breathing room, contained */
.product-miniature__top {
  position: relative;
  background: transparent;
  border-radius: var(--md-radius-sm);
  overflow: hidden;
}

.product-miniature__top a,
.product-miniature .product-thumbnail { display: block; }

.product-miniature__top img,
.product-miniature .product-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 1rem 1rem .5rem;
}

.product-miniature__bottom {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .7rem .55rem .6rem;
  flex: 1;
}

.product-miniature__infos {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

/* rating first */
.product-miniature__infos .comments_note,
.product-miniature__infos .product-list-reviews,
.product-miniature__infos [class*='product-comments'],
.product-miniature__infos .star_content {
  order: -1;
  margin: 0;
}

.product-miniature__infos .star_content .star,
.product-miniature .grade-stars { color: var(--md-accent); }

/* title */
.product-miniature__title {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--md-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.product-miniature__title:hover { color: var(--md-primary-700); }

/* prices — struck old price small, current price large */
.product-miniature__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  margin-top: auto;
}

.product-miniature__price {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--md-heading);
  order: 2;
}

.product-miniature__discount-price { order: 1; }

.product-miniature__regular-price {
  color: var(--md-muted);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: line-through;
}

/* flags / percentage */
.product-flags {
  top: .6rem;
  left: .6rem;
  right: .6rem;
  display: flex;
  gap: .35rem;
  z-index: 2;
}

.product-flag {
  background: var(--md-primary);
  color: #fff;
  font-weight: 700;
  font-size: .7rem;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--md-radius-pill);
  padding: .3em .7em;
  box-shadow: none;
}

.product-flag.new { background: var(--md-success); }
.product-flag.discount,
.product-flag.on-sale { background: var(--md-sale); color: #fff; }

.product-miniature .discount-percentage,
.product-miniature .discount-amount {
  background: var(--md-sale);
  color: #fff;
  font-weight: 700;
  border-radius: var(--md-radius-pill);
  padding: .15em .55em;
  font-size: .82rem;
}

/* actions — hide qty stepper on card, full-width pill with text */
.product-miniature__actions { margin-top: .7rem; }
.product-miniature__form { display: flex; }
.product-miniature__actions .quantity-button,
.product-miniature__form .quantity-button { display: none; }

.product-miniature__add.btn,
.product-miniature__details.btn {
  width: 100%;
  border-radius: var(--md-radius-pill);
  padding: .58rem 1rem;
  font-weight: 600;
}

.product-miniature__add.btn-square-icon {
  width: 100%;
  aspect-ratio: auto;
  height: auto;
}

.product-miniature__add .product-miniature__add-text,
.product-miniature__add-text {
  display: inline !important;
  margin-left: .4rem;
}

/* quick view / wishlist chips */
.product-miniature .quick-view,
.product-miniature__wishlist {
  border-radius: var(--md-radius-pill);
  background: rgba(255, 255, 255, .96);
  color: var(--md-ink);
  border: 1px solid var(--md-border);
  opacity: 0;
  transition: opacity var(--md-transition);
}

.product-miniature:hover .quick-view,
.product-miniature:focus-within .quick-view,
.product-miniature:hover .product-miniature__wishlist { opacity: 1; }

/* ==========================================================================
   8. Product grid
   ========================================================================== */

#products .products,
.products.row,
.featured-products .products,
.module-products__list .products,
ul.product_list.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 1.5rem 1rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

#products .products > *,
.products.row > *,
.featured-products .products > *,
.module-products__list .products > * {
  max-width: none;
  margin: 0;
  padding: 0;
  flex: none;
}

@media (max-width: 480px) {
  #products .products,
  .products.row,
  .featured-products .products {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: .5rem;
  }
}

/* ==========================================================================
   9. Home sections — centred plain titles, generous whitespace
   ========================================================================== */

.page-content--home > section,
.page-content--home .ps-imageslider,
.page-content--home .ps-customtext,
.page-content--home .ps-banner,
.page-content--home .featured-products {
  margin-block: clamp(.9rem, 2vw, 1.5rem);
  padding-block: 0;
}

.page-content--home > section:first-child,
.page-content--home .ps-imageslider:first-child { margin-top: clamp(.5rem, 1.5vw, 1rem); }

/* kill any extra inner padding the product modules add */
.page-content--home .featured-products,
.page-content--home .ps-bestsellers,
.page-content--home .ps-newproducts,
.page-content--home .ps-specials { padding: 0; }

/* section title: centred, medium weight, sentence case — no rule underneath */
.section-title,
.module-products .section-title,
.featured-products .h2,
.page-content--home h2 {
  display: block;
  text-align: center;
  margin: 0 auto 1rem;
  font-weight: 600;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.7rem);
  text-transform: none;
  letter-spacing: 0;
  color: var(--md-heading);
}

.section-title::after,
.featured-products .h2::after,
.page-content--home h2::after { display: none; }

.module-products__buttons { margin-top: 1rem; text-align: center; }

.all-product-link,
.module-products__buttons .btn {
  font-weight: 600;
  border-radius: var(--md-radius-pill);
}

/* hero slider — contained, rounded, calm */
.ps-imageslider .carousel {
  border-radius: var(--md-radius-lg);
  overflow: hidden;
  box-shadow: var(--md-shadow-xs);
}

.ps-imageslider .carousel-item img { border-radius: inherit; }

.ps-imageslider .carousel-caption {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .48));
  border-radius: 0;
  padding-bottom: 2rem;
}

.ps-imageslider .carousel-caption h2,
.ps-imageslider .carousel-caption .h1 {
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.ps-imageslider .carousel-caption .btn { border-radius: var(--md-radius-pill); }
.ps-imageslider .carousel-indicators [data-bs-target] { border-radius: 999px; }

/* promo banner */
.ps-banner .banner img { border-radius: var(--md-radius-lg); box-shadow: var(--md-shadow-xs); }

/* category tiles */
.md-cat-tiles,
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.md-cat-tiles a,
.category-tiles a {
  display: block;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  overflow: hidden;
  text-align: center;
  color: var(--md-heading);
  font-weight: 600;
  transition: border-color var(--md-transition), box-shadow var(--md-transition);
}

.md-cat-tiles a:hover,
.category-tiles a:hover { border-color: var(--md-border-strong); box-shadow: var(--md-shadow); }

.md-cat-tiles a img,
.category-tiles a img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.md-cat-tiles a span,
.category-tiles a span { display: block; padding: .75rem .5rem; }

/* brand logo grid (ps_brandlist) */
.ps-brandlist ul,
.manufacturer-list,
.brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--md-border);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-brandlist li,
.manufacturer-list li,
.brands-list li {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem;
  transition: background-color var(--md-transition);
}

.ps-brandlist li:hover,
.manufacturer-list li:hover { background: var(--md-bg-soft); }

.ps-brandlist img,
.manufacturer-list img { max-height: 42px; width: auto; filter: grayscale(1); opacity: .65; transition: filter var(--md-transition), opacity var(--md-transition); }
.ps-brandlist li:hover img,
.manufacturer-list li:hover img { filter: none; opacity: 1; }

/* about-the-shop text block */
.ps-customtext { color: var(--md-muted); font-weight: 500; }
.ps-customtext .container {
  background: var(--md-bg-soft);
  border-radius: var(--md-radius-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem);
}
.ps-customtext h1,
.ps-customtext h2,
.ps-customtext h3 { color: var(--md-heading); font-weight: 600; text-align: left; }
.ps-customtext h2::after { display: none; }

/* ==========================================================================
   10. Facets / listing header / pagination — light panels
   ========================================================================== */

#search_filters,
.products-selection,
#js-product-list-header {
  border-radius: var(--md-radius);
}

#search_filters {
  border: 1px solid var(--md-border);
  background: #fff;
  padding: 1.25rem 1.25rem;
  box-shadow: none;
}

.products-selection {
  background: #fff;
  border: 1px solid var(--md-border);
  padding: .6rem 1rem;
}

.facet .facet-title,
.facets-title {
  font-weight: 600;
  text-transform: none;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--md-heading);
}

.facet .collapse .facet-label a,
.facet .facet-label a { font-weight: 500; color: var(--md-ink); }
.facet .facet-label a:hover { color: var(--md-primary-700); }

.products-sort-order .select-title,
.products-selection .form-select {
  border-radius: var(--md-radius-sm);
  border-color: var(--md-border-strong);
  font-weight: 500;
}

.pagination .page-link {
  border-radius: var(--md-radius-sm);
  margin: 0 .12rem;
  color: var(--md-ink);
  border-color: var(--md-border-strong);
  font-weight: 600;
}

.pagination .page-item.active .page-link {
  background: var(--md-primary);
  border-color: var(--md-primary);
  color: #fff;
}

/* ==========================================================================
   11. Product page
   ========================================================================== */

.product-cover img,
.product-images img,
.js-qv-product-cover {
  border-radius: var(--md-radius);
  border: 1px solid var(--md-border);
}

#product .product-prices .current-price .price,
.current-price-value {
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--md-heading);
}

#product .product-add-to-cart .add-to-cart:not(.btn-square-icon) {
  border-radius: var(--md-radius-pill);
}

.product-information .h1,
#product h1 { font-weight: 700; }

/* single-value attribute — shown as a plain line, not a picker */
.product-variant--single {
  display: flex;
  gap: .25rem;
  align-items: baseline;
  margin-bottom: .5rem;
  font-size: .95rem;
}
.product-variant--single .product-variant__legend {
  margin: 0;
  font-weight: 600;
  color: var(--md-heading);
}
.product-variant--single .product-variant__selected { color: var(--md-ink); }

@media (max-width: 767.98px) {
  .product-actions,
  #product .product-add-to-cart {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--md-border);
    padding: .75rem;
    margin-inline: -.75rem;
  }
}

/* ==========================================================================
   12. Cards / alerts / forms
   ========================================================================== */

.card {
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  box-shadow: none;
}

.form-control,
.form-select {
  border-radius: var(--md-radius-sm);
  border-color: var(--md-border-strong);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(241, 92, 84, .12);
}

.alert { border-radius: var(--md-radius); border-width: 1px; font-weight: 500; }
.alert-success { --bs-alert-color: #1f6b28; --bs-alert-bg: #e8f6ea; --bs-alert-border-color: #bfe3c4; }
.alert-danger  { --bs-alert-color: #9a271c; --bs-alert-bg: #fdeceb; --bs-alert-border-color: #f6c9c5; }

.badge { border-radius: var(--md-radius-pill); font-weight: 700; }

/* shared field polish (auth, addresses, contact, checkout) */
.form-label {
  font-weight: 600;
  font-size: .84rem;
  color: var(--md-heading);
  margin-bottom: .35rem;
}
.form-label.required::after,
.form-check-label.required::after { content: ' *'; color: var(--md-sale); }

/* ps_dataprivacy consent — drop the stray trailing "*" after the long clause,
   and turn the detail block into a collapsible "more info" panel */
.form-check-label[for="field-customer_privacy"]::after { content: none !important; }
.form-check-label[for="field-customer_privacy"] {
  display: block;
  line-height: 1.5;
}
.mdcc-privacy-more {
  display: block;
  margin-top: .4rem;
}
.mdcc-privacy-more > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--md-primary-700);
}
.mdcc-privacy-more > summary::-webkit-details-marker { display: none; }
.mdcc-privacy-more > summary::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--md-transition);
}
.mdcc-privacy-more[open] > summary::after { transform: rotate(180deg); }
.mdcc-privacy-detail {
  display: block;
  margin-top: .4rem;
  font-size: .8rem;
  font-style: normal;
  line-height: 1.55;
  color: var(--md-muted);
}
.mdcc-privacy-detail em { font-style: normal; }
.mdcc-privacy-detail a { color: var(--md-primary-700); text-decoration: underline; }

.form-control,
.form-select { min-height: 44px; padding: .5rem .85rem; }

.form-text { font-size: .78rem; color: var(--md-muted); }

.mb-3.has-error .form-control,
.mb-3.has-error .form-select,
.has-error .form-control { border-color: var(--md-sale); }

.form-errors,
ul.help-block {
  list-style: none;
  margin: .35rem 0 0;
  padding: .5rem .75rem;
  border-radius: var(--md-radius-sm);
  background: #fdeceb;
  color: #9a271c;
  font-size: .82rem;
  font-weight: 500;
}
.form-errors li + li { margin-top: .15rem; }

/* password field — subtle show/hide button, not a coral CTA */
.input-group.password-field .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group.password-field .btn {
  background: var(--md-bg-soft);
  border: 1px solid var(--md-border-strong);
  border-left: 0;
  color: var(--md-muted);
  border-radius: 0 var(--md-radius-sm) var(--md-radius-sm) 0;
  padding-inline: .8rem;
}
.input-group.password-field .btn:hover { color: var(--md-primary-700); background: var(--md-primary-050); }
.input-group.password-field .btn .material-icons { font-size: 1.2rem; }

/* checkboxes / radios */
.form-check { padding-left: 1.8rem; margin-bottom: .5rem; }
.form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -1.8rem;
  margin-top: .12rem;
  border-color: var(--md-border-strong);
  accent-color: var(--md-primary);
}
.form-check-input:checked {
  background-color: var(--md-primary);
  border-color: var(--md-primary);
}
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(241, 92, 84, .18); border-color: var(--md-primary); }
.form-check-label { font-size: .85rem; color: var(--md-ink); }
.form-check-label a { font-weight: 600; }

/* ==========================================================================
   12b. Customer — login / registration / account forms
   ========================================================================== */

.container--limited-sm,
.container--limited-md { max-width: 960px; }

#main > .page-header .page-title,
.page-header h1 { margin-bottom: 1.25rem; }

/* card look for every auth / account form block */
.login__form-wrapper,
.login__register-prompt,
.register-form,
.forgotten-password .form-fields,
#password .form-fields,
.password-form,
.account-transformation-form {
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-xs);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.login__card-title,
.register-form > h1,
.register-form__title {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
}

/* login page: two cards side by side on desktop */
.login--split { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 992px) {
  .login--split { grid-template-columns: 1.15fr .85fr; }
}

.login__register-prompt { display: flex; flex-direction: column; }
.login__register-lead { color: var(--md-muted); font-size: .9rem; margin: 0 0 1.1rem; }
.login__register-prompt .d-grid { margin-top: auto; }
.login__register-prompt .btn,
#submit-login,
#customer-form .buttons-wrapper--end .btn,
#customer-form button[data-link-action='save-customer'] {
  width: 100%;
  border-radius: var(--md-radius-pill);
  padding-block: .65rem;
  font-weight: 600;
}
#customer-form > footer.buttons-wrapper--end { display: block; }

/* login form footer: stacked, submit first, forgot-password as a link */
.buttons-wrapper--split {
  display: flex;
  flex-direction: column-reverse;
  gap: .6rem;
  margin-top: .5rem;
}
.buttons-wrapper--split .btn-basic {
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--md-primary-700);
  font-weight: 600;
  font-size: .86rem;
  padding: 0;
}
.buttons-wrapper--split .btn-basic:hover { text-decoration: underline; }

/* registration: 2-col field grid on desktop (fields live in form > section) */
@media (min-width: 768px) {
  #customer-form > section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
    align-items: start;
  }
  /* things that must span both columns */
  #customer-form > section > .mb-3:has(.form-check-input),
  #customer-form > section > .mb-3:has(input[type='radio']),
  #customer-form > section > .mb-3:has(textarea),
  #customer-form > section > [data-ps-target='password-feedback-target'] {
    grid-column: 1 / -1;
  }
  /* radio title row: put the options in a line */
  #customer-form > section > .mb-3:has(input[type='radio']) .form-check-inline { margin-right: 1.5rem; }
}
#customer-form > footer.buttons-wrapper { margin-top: 1.25rem; }

.register-form hr,
.login hr { border-color: var(--md-border); opacity: 1; margin: 1.25rem 0; }

.register-form__login-prompt,
.register-form > p:last-child {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--md-muted);
  font-size: .88rem;
}
.register-form__login-prompt a,
.register-form > p:last-child a { font-weight: 600; }

/* birthday selects inline */
.js-parent-focus { display: flex; gap: .5rem; }
.js-parent-focus .form-select { min-width: 0; }
.js-parent-focus br { display: none; }

/* password strength popover / meter */
[data-ps-target='password-feedback-target']:not(:empty) { margin-top: .5rem; }

/* my-account tiles */
.my-account .links a,
#identity .account-links a {
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  transition: border-color var(--md-transition), box-shadow var(--md-transition);
}
.my-account .links a:hover { border-color: var(--md-border-strong); box-shadow: var(--md-shadow); }

/* ==========================================================================
   12c. Checkout — carrier pickup-point pickers (dpdshipping / inpostshipping)
   ========================================================================== */

.dpdshipping-pudo-container,
.dpdshipping-pudo-cod-container,
.dpdshipping-pudo-swipbox-container,
.inpost-shipping-container,
.js-inpost-shipping-container {
  margin-top: .55rem;
  padding: .8rem 0 .3rem;
}

.dpdshipping-pudo-new-point,
.dpdshipping-pudo-selected-point,
.dpdshipping-pudo-cod-new-point,
.dpdshipping-pudo-cod-selected-point {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem;
  margin: 0;
}
.dpdshipping-pudo-new-point > span,
.inpost-shipping-label { color: var(--md-muted); font-size: .88rem; }
.dpdshipping-selected-point,
.dpdshipping-cod-selected-point,
.inpost-shipping-machine-name,
.inpost-shipping-machine-address { color: var(--md-heading); }

/* primary "choose from the map" action */
.dpdshipping-pudo-open-map-btn,
.dpdshipping-pudo-cod-open-map-btn,
.dpdshipping-pudo-swipbox-open-map-btn,
.inpost-shipping-button,
.js-inpost-shipping-choose-machine,
.js-select-closest-machine {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--md-primary);
  border: 1px solid var(--md-primary);
  color: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.1;
  padding: .58rem 1.15rem;
  border-radius: var(--md-radius-pill);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: background-color var(--md-transition), border-color var(--md-transition), transform .05s ease;
}
.dpdshipping-pudo-open-map-btn:hover,
.dpdshipping-pudo-cod-open-map-btn:hover,
.dpdshipping-pudo-swipbox-open-map-btn:hover,
.inpost-shipping-button:hover,
.js-inpost-shipping-choose-machine:hover,
.js-select-closest-machine:hover {
  background: var(--md-primary-600);
  border-color: var(--md-primary-600);
  color: #fff;
}
.dpdshipping-pudo-open-map-btn:active,
.inpost-shipping-button:active { transform: translateY(1px); }

/* secondary "change" / "show map input" action */
.dpdshipping-pudo-change-map-btn,
.dpdshipping-pudo-cod-change-map-btn,
.js-inpost-show-map-input,
.js-inpost-shipping-customer-change {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 1px solid var(--md-border-strong);
  color: var(--md-primary-700);
  font-weight: 600;
  font-size: .8rem;
  line-height: 1.1;
  padding: .45rem .95rem;
  border-radius: var(--md-radius-pill);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  float: none !important;
  transition: background-color var(--md-transition), border-color var(--md-transition);
}
.dpdshipping-pudo-change-map-btn:hover,
.dpdshipping-pudo-cod-change-map-btn:hover,
.js-inpost-show-map-input:hover,
.js-inpost-shipping-customer-change:hover {
  background: var(--md-bg-soft);
  border-color: var(--md-primary);
  color: var(--md-primary-700);
}

/* the InPost geowidget map iframe */
.js-inpost-shipping-widget-container iframe,
inpost-geowidget { border-radius: var(--md-radius); overflow: hidden; }

/* ==========================================================================
   13. Footer — multi-column, calm
   ========================================================================== */

/* one continuous soft-grey block: newsletter + columns, no floating bands */
.footer {
  margin-top: 0;
  background: var(--md-bg-soft);
  border-top: 1px solid var(--md-border);
  color: var(--md-ink);
}

.footer.footer__before,
.footer.footer__main { background: var(--md-bg-soft); }

.footer__before {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--md-border);
}

/* newsletter strip — flush, compact, no card */
.footer__before .ps-emailsubscription,
.block_newsletter,
.ps-emailsubscription {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-block: 1.4rem !important;
}

.footer__before .ps-emailsubscription .row { align-items: center; }
.footer__before .h3 { margin: 0 !important; font-size: 1rem; color: var(--md-heading); }
.footer__before .text-body-secondary,
.footer__before p.fs-6 { margin: .35rem 0 0 !important; font-size: .82rem; }

.block_newsletter form input[type='email'],
.ps-emailsubscription form input[type='email'] {
  border-radius: var(--md-radius-pill);
  border: 1px solid var(--md-border-strong);
}
.block_newsletter form .btn,
.ps-emailsubscription form .btn { border-radius: var(--md-radius-pill); }

/* column titles — were white on light; force dark */
.footer-block__title,
.footer-block__title a,
.footer-block__title button,
.footer .h3,
.footer h3,
.footer .title,
.footer-block__title--toggle {
  font-weight: 600;
  text-transform: none;
  font-size: .96rem;
  letter-spacing: 0;
  color: var(--md-heading) !important;
  margin: 0 0 .7rem !important;
}

.footer .h3::after,
.footer-block__title::after { display: none; }

.footer,
.footer a,
.footer address,
.footer .footer-block__list a,
.ps-contactinfo__infos,
.ps-contactinfo__email a,
.x13w-footer-withdraw { color: var(--md-muted); font-weight: 500; }

.footer a:hover,
.footer .footer-block__list a:hover,
.x13w-footer-withdraw:hover { color: var(--md-primary-700); }

.footer-block__list { margin: 0; }
.footer-block__list li { padding: .2rem 0; }

.footer__main-top { padding-block: 1.75rem 1.25rem; }

/* keep the contact block last, whatever the module hook order is */
.footer__main-top > .ps-contactinfo,
.footer__main-top > .md-contactinfo { order: 90; }
.footer__main-top > .x13w-footer-link { order: 95; }
.footer-block { margin-bottom: 1rem; }

/* social icons — soft round */
.ps-socialfollow ul li a,
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--md-radius-pill);
  background: #fff;
  border: 1px solid var(--md-border);
  color: var(--md-heading);
  transition: background-color var(--md-transition), color var(--md-transition);
}

.ps-socialfollow ul li a:hover,
.social-icons a:hover {
  background: var(--md-primary);
  color: #fff;
  border-color: var(--md-primary);
  transform: none;
}

/* account links — coral square bullets (like the old site) */
.ps-customeraccountlinks .footer-block__list li,
.ps-linklist .footer-block__list li {
  position: relative;
  padding-left: 1rem;
}
.ps-customeraccountlinks .footer-block__list li::before,
.ps-linklist .footer-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 5px;
  background: var(--md-primary);
  border-radius: 1px;
}

/* custom contact block */
.md-contactinfo .footer-block__title { display: flex; align-items: center; gap: .5rem; }
.md-contactinfo__social { display: inline-flex; gap: .4rem; margin-left: auto; }
.md-contactinfo__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--md-radius-pill);
  border: 1px solid var(--md-border-strong);
  color: var(--md-muted);
  transition: color var(--md-transition), border-color var(--md-transition);
}
.md-contactinfo__social a:hover { color: var(--md-primary); border-color: var(--md-primary); }
@media (max-width: 767.98px) { .md-contactinfo__social { display: none; } }

.md-contactinfo__list { list-style: none; margin: 0; padding: 0; }
.md-contactinfo__item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
  line-height: 1.4;
  font-size: .86rem;
}
.md-contactinfo__item + .md-contactinfo__item { border-top: 1px solid var(--md-border); }
.md-contactinfo__ic {
  flex: 0 0 auto;
  font-size: 1.15rem;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--md-radius-pill);
  background: var(--md-primary-050);
  color: var(--md-primary);
}
.md-contactinfo__ic--alt { background: rgba(248, 164, 63, .16); color: var(--md-accent); }
.md-contactinfo__item strong { color: var(--md-heading); font-weight: 600; }
.md-contactinfo__item a { color: var(--md-ink); font-weight: 600; }
.md-contactinfo__item a:hover { color: var(--md-primary-700); }
.md-contactinfo__note { color: var(--md-muted); font-weight: 500; }

/* "Odstąp od umowy" — own full-width sub-row, not floating in a gap */
.footer__main-top .x13w-footer-link {
  width: 100%;
  margin-top: .25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--md-border);
}

.footer__copyright,
.footer-copyright,
.footer .copyright,
#footer .copyright {
  border-top: 1px solid var(--md-border);
  color: var(--md-muted);
  font-size: .82rem;
  text-align: center;
  padding-block: 1rem;
  margin-top: .5rem;
}
.footer .copyright a { color: var(--md-muted); font-weight: 600; }
.footer .copyright a:hover { color: var(--md-primary-700); }

/* ==========================================================================
   14. Misc
   ========================================================================== */

.back-to-top-link,
#back-to-top {
  border-radius: var(--md-radius-pill);
  box-shadow: var(--md-shadow);
}

.toast { border-radius: var(--md-radius); box-shadow: var(--md-shadow-lg); }

::selection { background: rgba(241, 92, 84, .2); }

@media (pointer: fine) {
  * { scrollbar-color: #cdd1d9 transparent; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-thumb { background: #cdd1d9; border-radius: 999px; border: 2px solid #fff; }
}

/* ==========================================================================
   14b. Smooth page transitions
   Cross-document View Transitions where supported (Chrome/Edge/Safari TP),
   with a universal fade-in fallback for everyone else.
   ========================================================================== */

/* full-reload navigations still get a crossfade where the browser supports it */
@view-transition { navigation: auto; }

/* shared by cross-document VT and Swup's same-document (native) VT */
::view-transition-old(root) {
  animation: md-vt-out .16s ease both;
}
::view-transition-new(root) {
  animation: md-vt-in .26s ease both;
}
@keyframes md-vt-out { to { opacity: 0; } }
@keyframes md-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* async navigation progress bar */
.md-nav-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  z-index: 2000;
  background: var(--md-primary);
  box-shadow: 0 0 8px rgba(241, 92, 84, .6);
  opacity: 0;
  pointer-events: none;
  transition: width .25s ease, opacity .3s ease;
}
.md-nav-progress.is-active { width: 82%; opacity: 1; transition: width 8s cubic-bezier(.1, .8, .2, 1), opacity .15s ease; }
.md-nav-progress.is-done { width: 100%; opacity: 0; transition: width .2s ease, opacity .35s ease .1s; }

/* keep the sticky header steady across the transition */
#header.js-sticky-header { view-transition-name: md-header; }
::view-transition-group(md-header) { animation-duration: .001ms; }

/* fallback: fade the main content in on load for browsers without the API */
@supports not (view-transition-name: none) {
  #wrapper { animation: md-page-in .32s ease both; }
  @keyframes md-page-in { from { opacity: 0; transform: translateY(10px); } }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  #wrapper { animation: none !important; }
}

/* ==========================================================================
   15. Motion / accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root { --md-muted: #5b5e64; --md-border: #c9ccd3; --md-border-strong: #a9adb6; }
}

/* ==========================================================================
   15. Product page — modern layout (cards, sticky buy box, clear sections)
   ========================================================================== */
.product__container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: 2.5rem;
}
@media (max-width: 991.98px) {
  .product__container { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* gallery: soft framed stage + rounded thumbs */
.product__left .product__images {
  background: var(--md-bg-soft);
  border-radius: var(--md-radius-lg);
  padding: clamp(.5rem, 1.5vw, 1.25rem);
  overflow: hidden;
}
.product__carousel .carousel-item img { border-radius: var(--md-radius); mix-blend-mode: multiply; }
.product__thumbnails-list { gap: .6rem; }
.product__thumbnail-image {
  border-radius: var(--md-radius) !important;
  border: 2px solid transparent;
  background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product__thumbnail:hover .product__thumbnail-image { transform: translateY(-2px); box-shadow: var(--md-shadow-xs); }
.product__thumbnail.active .product__thumbnail-image,
.product__thumbnail-image.js-thumb-selected { border-color: var(--md-primary); }
.product__zoom.btn { background: #fff; border-radius: var(--md-radius-pill); box-shadow: var(--md-shadow-xs); }

/* buy box: a real card that stays in view while you read the page */
.product__right {
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
@media (min-width: 992px) {
  .product__right { position: sticky; top: 96px; }
}
.product__name {
  color: var(--md-heading);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.product__manufacturer a {
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--md-primary-700);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.product__manufacturer a:hover { text-decoration: underline; }

/* price block */
.product__prices-block {
  margin: 1rem 0 1.1rem;
  padding: 1rem 1.15rem;
  background: var(--md-primary-050);
  border-radius: var(--md-radius);
}
.product__price {
  color: var(--md-sale);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.05;
}
.product__regular-price { color: var(--md-muted); font-weight: 500; }
.product__discount-percentage,
.product__discount-amount {
  background: var(--md-sale);
  color: #fff !important;
  border-radius: var(--md-radius-pill);
  padding: .15rem .65rem;
  font-size: .8rem;
  font-weight: 700;
}
.product__tax-infos, .product__unit-price, .product__tax-label { color: var(--md-muted); font-size: .82rem; }

.product__description-short {
  color: var(--md-ink);
  line-height: 1.6;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--md-border);
}

/* variants */
.product-variant__legend, .product-variant .form-label {
  font-weight: 700;
  color: var(--md-heading);
  font-size: .9rem;
}
.product-variant { margin-bottom: 1rem; }
.product-variant--single { padding: .55rem .9rem; background: var(--md-bg-soft); border-radius: var(--md-radius); }
.product-variant .form-select { border-radius: var(--md-radius); border-color: var(--md-border-strong); padding: .65rem .9rem; }
.input-color__label { border-radius: 50%; transition: box-shadow .2s, transform .2s; }
.input-color__label:hover { transform: scale(1.08); }
.input-color__label--active, .input-color__input:checked + .input-color__label {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--md-primary);
}

/* add to cart row */
.product__add-to-cart-container { margin-top: 1.25rem; }
.product__actions-qty-add { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.product__add-to-cart-button.btn {
  flex: 1 1 200px;
  min-height: 3.25rem;
  border-radius: var(--md-radius-pill);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
  background: linear-gradient(135deg, var(--md-accent), var(--md-primary));
  border: 0;
  color: #fff;
  box-shadow: 0 10px 22px rgba(241, 92, 84, .32);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.product__add-to-cart-button.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(241, 92, 84, .4);
  filter: saturate(1.08);
}
.product__add-to-cart-button.btn:disabled { background: var(--md-border-strong); box-shadow: none; color: #fff; }
.product__quantity input { text-align: center; font-weight: 700; }
.product__availability { margin-top: .9rem; }
.product__availability-status { font-weight: 600; }
.product__delivery-infos { color: var(--md-muted); font-size: .88rem; }

/* lower part: every section is its own card */
.product__bottom { margin-top: 2rem; }
.product__accordion {
  --bs-accordion-bg: #fff;
  --bs-accordion-border-color: var(--md-border);
  --bs-accordion-border-radius: var(--md-radius-lg);
  --bs-accordion-inner-border-radius: var(--md-radius-lg);
  --bs-accordion-btn-padding-y: 1.1rem;
  --bs-accordion-btn-padding-x: 1.4rem;
  --bs-accordion-body-padding-x: 1.4rem;
  --bs-accordion-body-padding-y: 1.25rem;
  --bs-accordion-active-bg: var(--md-primary-050);
  --bs-accordion-active-color: var(--md-primary-700);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(241, 92, 84, .18);
  display: grid;
  gap: .9rem;
}
.product__accordion .accordion-item {
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg) !important;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--md-shadow-xs);
  transition: box-shadow .2s, border-color .2s;
}
.product__accordion .accordion-item:hover { border-color: var(--md-border-strong); box-shadow: var(--md-shadow); }
.product__accordion .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--md-heading);
  background: #fff;
}
.product__accordion .accordion-button:not(.collapsed) {
  color: var(--md-primary-700);
  background: var(--md-primary-050);
  box-shadow: inset 0 -1px 0 var(--md-border);
}
.product__accordion .accordion-body { color: var(--md-ink); line-height: 1.7; }
.product__accordion .accordion-body table { width: 100%; }
.product__accordion .accordion-body td, .product__accordion .accordion-body th { padding: .5rem .25rem; border-bottom: 1px solid var(--md-border); }
.product__description h2, .product__description h3 { color: var(--md-heading); margin-top: 1.4rem; }
.product__description img { border-radius: var(--md-radius); max-width: 100%; height: auto; }

/* reassurance (blockreassurance) as tidy tiles */
.product__bottom .blockreassurance_product { margin: 1rem 0 0; }
.blockreassurance_product > div {
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  background: #fff;
  padding: .7rem .9rem;
  margin-bottom: .6rem;
}

@media (max-width: 575.98px) {
  .product__right { padding: 1.1rem; border-radius: var(--md-radius); }
  .product__add-to-cart-button.btn { flex-basis: 100%; }
}

/* ==========================================================================
   16. Home / module product sections (featured, new, sale, best sellers)
   ========================================================================== */
.module-products { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* section heading: big, centred, with a short orange underline */
.module-products .section-title {
  position: relative;
  margin: 0 0 2rem;
  padding-bottom: .9rem;
  text-align: center;
  color: var(--md-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -.01em;
  text-transform: none;
}
.module-products .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: var(--md-radius-pill);
  background: linear-gradient(90deg, var(--md-accent), var(--md-primary));
}

/* product grid: even, airy, cards fill the row height */
.module-products__list { margin-bottom: 0; }
.module-products .product-miniature__inner {
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  background: #fff;
  overflow: hidden;
}
.module-products .product-miniature__title {
  text-transform: none;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.35;
  color: var(--md-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.module-products .product-miniature__price {
  color: var(--md-sale);
  font-weight: 800;
  font-size: 1.2rem;
}
.module-products .product-miniature__add.btn {
  border-radius: var(--md-radius-pill);
  font-weight: 700;
  background: linear-gradient(135deg, var(--md-accent), var(--md-primary));
  border: 0;
  color: #fff;
  box-shadow: 0 8px 18px rgba(241, 92, 84, .26);
  transition: transform .18s, box-shadow .18s;
}
.module-products .product-miniature__add.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(241, 92, 84, .36);
}

/* "see all" button under the grid */
.module-products__buttons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.module-products__buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.9rem;
  border-radius: var(--md-radius-pill);
  border: 2px solid var(--md-primary);
  background: #fff;
  color: var(--md-primary-700);
  font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}
.module-products__buttons .btn:hover {
  background: var(--md-primary);
  color: #fff;
  transform: translateY(-2px);
}
.module-products__buttons .btn .material-icons { font-size: 1.2rem; transition: transform .2s; }
.module-products__buttons .btn:hover .material-icons { transform: translateX(3px); }

/* alternate soft background band so sections don't blur into each other */
.ps-featuredproducts, .ps-specials { background: var(--md-bg-soft); }

/* ==========================================================================
   17. Site-wide polish (wide screens, header, hero, footer)
   ========================================================================== */
/* on big monitors the 1208px column left huge empty margins */
@media (min-width: 1600px) { :root { --md-container: 1440px; } }
@media (min-width: 2200px) { :root { --md-container: 1680px; } }

/* hero slider: taller, softer, with dots inside the picture */
.ps-imageslider { margin-block: 1.25rem 0; }
.ps-imageslider .carousel, .ps-imageslider__container { border-radius: var(--md-radius-lg); overflow: hidden; box-shadow: var(--md-shadow); }
.ps-imageslider .carousel-control-prev, .ps-imageslider .carousel-control-next { opacity: 1; width: 3.25rem; }
.ps-imageslider .carousel-control-prev-icon, .ps-imageslider .carousel-control-next-icon { background-color: rgba(255,255,255,.9); border-radius: 50%; background-size: 45%; padding: 1.2rem; box-shadow: var(--md-shadow-xs); }

/* airy rhythm between home blocks */
.ps-customtext { padding-block: clamp(2rem, 5vw, 4rem); }
.ps-emailsubscription { border-top: 0; }

/* cards: consistent hover lift everywhere products are listed */
.product-miniature__inner { transition: transform .2s, box-shadow .2s; }
.product-miniature__inner:hover { transform: translateY(-4px); box-shadow: var(--md-shadow-lg); }
@media (prefers-reduced-motion: reduce) { .product-miniature__inner, .product-miniature__inner:hover { transition: none; transform: none; } }

/* single leftover card (e.g. bestsellers) shouldn't hug the left edge */

/* empty desktop menu must not reserve space */
.ps-mainmenu__desktop:empty, .ps-mainmenu--desktop:has(.ps-mainmenu__desktop:empty) { display: none; }

/* incomplete last row / few products: centre the cards instead of hugging the left */
.module-products__list .products { grid-template-columns: repeat(auto-fit, minmax(248px, 300px)); justify-content: center; }

/* card CTA: roomier button, breathing space around it */
.product-miniature .product-miniature__add.btn,
.product-miniature .product-miniature__details.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .8rem 1.6rem;
  font-size: .95rem;
  line-height: 1.2;
  letter-spacing: .01em;
}
.product-miniature .product-miniature__add .material-icons { font-size: 1.25rem; margin: 0; }
.product-miniature .product-miniature__add .product-miniature__add-text { margin-left: 0; }
.product-miniature__actions { margin-top: 1rem; padding-inline: .9rem; padding-bottom: 1rem; }

/* ==========================================================================
   18. Main menu bar (uppercase, evenly spread, orange "Promocje") + mega menu
   ========================================================================== */
@media (min-width: 1200px) {
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    width: 100%;
  }
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li { flex: 0 1 auto; }
}
.ps-mainmenu__tree-link {
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link { padding-inline: .6rem; }
/* Promocje = orange, always */
.ps-mainmenu__tree-link[href*="promocje"],
.ps-mainmenu__tree-link[href*="prices-drop"],
.ps-mainmenu__tree-link[href*="wyprzedaz"] { color: var(--md-sale) !important; }
.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-link[href*="promocje"],
.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-link[href*="prices-drop"] { border-bottom-color: var(--md-sale); }

/* mega menu: all subcategories visible at once, one column per group */
.md-mega { padding-block: 1.75rem 1.25rem; max-height: calc(100vh - 160px); overflow-y: auto; }
.md-mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.75rem 2rem;
}
.md-mega__title {
  display: block;
  margin-bottom: .55rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--md-primary);
  color: var(--md-heading);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
}
.md-mega__list, .md-mega__brands { list-style: none; margin: 0; padding: 0; }
.md-mega__link {
  display: block;
  padding: .22rem 0;
  color: var(--md-ink);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}
.md-mega__link:hover { color: var(--md-primary-700); padding-left: .3rem; }
.md-mega__item--d4 .md-mega__link { padding-left: .9rem; font-size: .86rem; color: var(--md-muted); }
.md-mega__title:hover { color: var(--md-primary-700); }
.md-mega__brands { column-width: 180px; column-gap: 2rem; }
.md-mega__brands .md-mega__item { break-inside: avoid; }
.md-mega__all {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--md-primary-700);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.md-mega__all:hover { text-decoration: underline; }
@media (min-width: 1200px) {
  .ps-mainmenu:is(.ps-mainmenu--desktop) > .ps-mainmenu__desktop { flex: 1 1 100%; width: 100%; }
}

/* mobile menu: same look as desktop bar — uppercase top level, orange Promocje */
#menu-mobile > .menu__list > li > .menu__link {
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 700;
}
.menu--mobile .menu__link[href*="promocje"],
.menu--mobile .menu__link[href*="prices-drop"],
.menu--mobile .menu__link[href*="wyprzedaz"] { color: var(--md-sale); }

/* header rhythm (desktop): 30px above and below the category text */
@media (min-width: 1200px) {
  .ps-mainmenu:is(.ps-mainmenu--desktop) > .ps-mainmenu__desktop .ps-mainmenu__tree > li .ps-mainmenu__tree-link,
  .ps-mainmenu:is(.ps-mainmenu--desktop) > .ps-mainmenu__desktop .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle { padding-block: .5rem; }
  .header-bottom__row .ps-mainmenu.ps-mainmenu--desktop { margin-top: 30px; }
  .header-bottom { padding-bottom: 0; }
  .header-bottom__row .ps-mainmenu.ps-mainmenu--desktop { margin-bottom: -2px; }
  .page-content--home .ps-imageslider, .page-content--home .ps-imageslider:first-child { margin-top: 30px; }
}

/* ==========================================================================
   19. Kids backdrop — warm paper tone + playful shapes down both page edges
   ========================================================================== */
body { background-color: #fff; }
@media (min-width: 1500px) {
  body {
    background-image: url("../img/kids-bg-left.svg?v=2"), url("../img/kids-bg-right.svg?v=2");
    background-repeat: repeat-y, repeat-y;
    background-position: left top, right top;
    background-size: 300px 1000px, 300px 1000px;
  }
}
/* full-width home bands stay light but let the shapes peek through at the edges */
.ps-featuredproducts, .ps-specials, .ps-newproducts, .ps-bestsellers { background: rgba(255, 244, 235, .8); }
.page-index .ps-imageslider { background: transparent; }
/* no white strip between the last home section and the newsletter/footer */
.page-index .center-column { padding-bottom: 0; }
.page-content--home > :last-child { margin-bottom: 0; }

/* once scrolled, the sticky header keeps only promo bar + logo/search (see theme-md.js) */
@media (min-width: 1200px) {
  .header.md-compact .ps-mainmenu--desktop { display: none; }
  .header.md-compact .header-bottom { padding-bottom: 14px; }
}

/* mega menu: 5 links per group + product spotlight on the right */
.md-mega__layout--with-product { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; align-items: start; }
.md-mega__layout--with-product .md-mega__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.md-mega__more { display: inline-block; margin-top: .3rem; font-size: .82rem; font-weight: 700; color: var(--md-primary-700); text-decoration: none; }
.md-mega__more:hover { text-decoration: underline; }
.md-mega__product { border-left: 1px solid var(--md-border); padding-left: 2rem; }
.md-mega__pcard { display: none; text-decoration: none; color: var(--md-ink); }
.md-mega__pcard.is-on { display: block; }
.md-mega__pimg { display: block; aspect-ratio: 1 / 1; border-radius: var(--md-radius); background: var(--md-bg-soft); overflow: hidden; }
.md-mega__pimg img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; mix-blend-mode: multiply; }
.md-mega__pname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .75rem; font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--md-heading); }
.md-mega__pprice { display: block; margin-top: .3rem; font-weight: 800; color: var(--md-sale); }
.md-mega__pprice s { margin-right: .3rem; font-weight: 500; font-size: .82rem; color: var(--md-muted); }
.md-mega__pcard:hover .md-mega__pname { color: var(--md-primary-700); }

/* ==========================================================================
   20. Header — soft kids accents (shapes at the edges + colourful stripe)
   ========================================================================== */
.header { border-bottom: 0; }
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, #F15C54 0 28px, #F8A43F 28px 56px, #FFD24D 56px 84px, #7FD1B9 84px 112px, #8EC9F5 112px 140px);
  opacity: .9;
  pointer-events: none;
}
@media (min-width: 1500px) {
  .header {
    background-image: url("../img/kids-header-left.svg"), url("../img/kids-header-right.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: left 2% bottom 10px, right 2% bottom 10px;
    background-size: auto 130px, auto 130px;
  }
}

/* ==========================================================================
   21. Login / registration modal + newsletter accents
   ========================================================================== */
dialog.md-auth {
  border: 0;
  border-radius: var(--md-radius-lg);
  padding: 0;
  width: min(680px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  color: var(--md-ink);
  box-shadow: 0 30px 80px rgba(40, 30, 20, .35);
}
dialog.md-auth::backdrop { background: rgba(60, 40, 25, .5); backdrop-filter: blur(2px); }
.md-auth__stripe { height: 6px; background: repeating-linear-gradient(90deg, #F15C54 0 28px, #F8A43F 28px 56px, #FFD24D 56px 84px, #7FD1B9 84px 112px, #8EC9F5 112px 140px); }
.md-auth__close { position: absolute; top: .6rem; right: .8rem; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--md-muted); cursor: pointer; }
.md-auth__close:hover { color: var(--md-primary-700); }
.md-auth__tabs { display: flex; gap: .4rem; padding: 1.1rem 1.5rem 0; }
.md-auth__tabs button {
  flex: 1;
  padding: .7rem 1rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--md-muted);
  cursor: pointer;
}
.md-auth__tabs button.is-on { color: var(--md-primary-700); border-bottom-color: var(--md-primary); }
.md-auth__body { padding: 1.25rem 1.5rem 1.6rem; }
.md-auth__body .form-control { border-radius: var(--md-radius); }
.md-auth__body .btn-primary:not([data-ps-action]) { width: 100%; border-radius: var(--md-radius-pill); padding: .75rem 1.5rem; font-weight: 700; }
.md-auth__loading { margin: 2rem 0; text-align: center; color: var(--md-muted); }

/* newsletter strip: colourful stripe + soft shapes at both ends */
.footer__before .ps-emailsubscription, .block_newsletter, .ps-emailsubscription { position: relative; overflow: hidden; }
.footer__before .ps-emailsubscription::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(90deg, #F15C54 0 28px, #F8A43F 28px 56px, #FFD24D 56px 84px, #7FD1B9 84px 112px, #8EC9F5 112px 140px);
  opacity: .9;
}
@media (min-width: 992px) {
  .footer__before .ps-emailsubscription {
    background-image: url("../img/kids-header-left.svg"), url("../img/kids-header-right.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: left 3% center, right 3% center;
    background-size: auto 100px, auto 100px;
  }
}
.md-auth__body .input-group { flex-wrap: nowrap; }
.md-auth__body .input-group > .form-control { min-width: 0; }

/* password show/hide: compact icon button instead of a full primary button */
.md-auth__body .password-field { flex-wrap: nowrap; }
.md-auth__body .password-field > .form-control { flex: 1 1 auto; width: 1%; min-width: 0; }
.md-auth__body .password-field > .btn[data-ps-action] {
  flex: 0 0 auto;
  width: 3rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--md-bg-soft);
  border: 1px solid var(--md-border-strong);
  border-left: 0;
  border-radius: 0 var(--md-radius) var(--md-radius) 0;
  color: var(--md-ink);
  box-shadow: none;
}
.md-auth__body .password-field > .form-control { border-radius: var(--md-radius) 0 0 var(--md-radius); }
.md-auth__body .password-field > .btn[data-ps-action]:hover { color: var(--md-primary-700); background: var(--md-primary-050); }

/* brands dropdown: illustration on the right */
.md-mega__art { border-left: 1px solid var(--md-border); padding-left: 2rem; }
.md-mega__art img { display: block; width: 100%; height: auto; }
.md-mega--brands .md-mega__brands { column-width: 170px; }

/* mega menu right column: category graphic above the product spotlight */
.md-mega__side { border-left: 1px solid var(--md-border); padding-left: 2rem; display: grid; gap: 1.25rem; align-content: start; }
.md-mega__side .md-mega__product { border-left: 0; padding-left: 0; }
.md-mega__catart { display: block; border-radius: var(--md-radius-lg); overflow: hidden; box-shadow: var(--md-shadow-xs); transition: transform .2s, box-shadow .2s; }
.md-mega__catart:hover { transform: translateY(-2px); box-shadow: var(--md-shadow); }
.md-mega__catart img { display: block; width: 100%; height: auto; }

/* mega menu: subcategories as icon tiles (no deeper levels) */
.md-mega__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.1rem .9rem; align-content: start; }
.md-mega__tile { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: .7rem .4rem; border-radius: var(--md-radius-lg); text-align: center; text-decoration: none; color: var(--md-heading); transition: background .2s, transform .2s, box-shadow .2s; }
.md-mega__tile:hover { background: var(--md-primary-050); transform: translateY(-3px); box-shadow: var(--md-shadow-xs); }
.md-mega__ticon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--md-bg-soft); }
.md-mega__ticon img { width: 100%; height: 100%; object-fit: cover; }
.md-mega__ticon--more { background: var(--md-primary-050); color: var(--md-primary-700); font-weight: 800; font-size: 1.3rem; }
.md-mega__tlabel { font-size: .95rem; font-weight: 600; line-height: 1.25; }
.md-mega__tile:hover .md-mega__tlabel { color: var(--md-primary-700); }
.md-mega__layout--with-product .md-mega__tiles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }

/* mega menu tiles as blocks (lazienkaplus-style): fill the row, image on top, label below */
.md-mega__tiles,
.md-mega__layout--with-product .md-mega__tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.md-mega__tile {
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  background: #fff;
}
.md-mega__tile:hover { background: #fff; border-color: var(--md-primary); box-shadow: var(--md-shadow); transform: translateY(-3px); }
.md-mega__ticon { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; background: var(--md-bg-soft); }
.md-mega__ticon img { object-fit: contain; padding: .6rem; mix-blend-mode: multiply; }
.md-mega__ticon--more { aspect-ratio: 4 / 3; border-radius: 0; }
.md-mega__tlabel { padding: .75rem .6rem; font-size: .95rem; text-align: center; }

.md-mega__all--btn {
  padding: .7rem 1.6rem;
  border: 2px solid var(--md-primary);
  border-radius: var(--md-radius-pill);
  background: #fff;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.md-mega__all--btn:hover { background: var(--md-primary); color: #fff; text-decoration: none; }

/* mega menu tiles: always 4 per row (desktop menu only exists from 1200px up) */
.md-mega__tiles,
.md-mega__layout--with-product .md-mega__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1399.98px) {
  .md-mega__layout--with-product { grid-template-columns: minmax(0, 1fr) 210px; gap: 1.5rem; }
  .md-mega__side { padding-left: 1.5rem; }
  .md-mega__tlabel { font-size: .88rem; padding: .6rem .4rem; }
}
.md-mega__ticon img { box-sizing: border-box; }

/* two products in the menu spotlight */
.md-mega__product { display: grid; gap: 1.1rem; align-content: start; }
.md-mega__product .md-mega__pimg { aspect-ratio: 4 / 3; }
.md-mega__product .md-mega__pname { margin-top: .5rem; font-size: .88rem; }

/* category listing header: breathing room between description, subcategory chips and the product list */
.category__header { margin-bottom: 2rem; }
.category__description { margin-bottom: 1.75rem; }
.category__header .subcategory { margin-top: 1.5rem; }
#js-product-list-header + #js-product-list-top,
#js-product-list-header + * { margin-top: 0; }

/* category description: clear rhythm inside the text and a generous gap before the list */
.category__description p { margin-bottom: 1rem; }
.category__description h1,
.category__description h2,
.category__description h3 { margin: 2.25rem 0 1.25rem; }
.category__description > :last-child { margin-bottom: 0; }
.category__header { margin-bottom: 3rem; }

/* brands dropdown: 24 logo tiles, 8 per row */
.md-mega__brandgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .8rem; }
.md-mega__brand {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  background: #fff;
  text-decoration: none;
  color: var(--md-heading);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.md-mega__brand:hover { transform: translateY(-3px); border-color: var(--md-primary); box-shadow: var(--md-shadow); }
.md-mega__blogo { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: .6rem; background: #fff; }
.md-mega__blogo img { width: 100%; height: 100%; object-fit: contain; box-sizing: border-box; }
.md-mega__bname { font-weight: 800; font-size: .95rem; line-height: 1.2; text-align: center; text-transform: uppercase; letter-spacing: .02em; color: var(--md-primary-700); word-break: break-word; }
.md-mega__brand--text .md-mega__blogo { background: var(--md-primary-050); }
.md-mega__blabel { padding: .4rem .4rem .6rem; font-size: .8rem; font-weight: 600; text-align: center; border-top: 1px solid var(--md-border); }
@media (max-width: 1399.98px) {
  .md-mega__brandgrid { gap: .6rem; }
  .md-mega__bname { font-size: .8rem; }
  .md-mega__blabel { font-size: .74rem; }
}

/* ==========================================================================
   22. Home-page product card everywhere (listings, search, related, viewed…)
   ========================================================================== */
.product-miniature__inner {
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  background: #fff;
  overflow: hidden;
  padding: 0;
}
.product-miniature:hover .product-miniature__inner,
.product-miniature:focus-within .product-miniature__inner { background: #fff; }
.product-miniature__title {
  text-transform: none;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.35;
  color: var(--md-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.product-miniature__price { color: var(--md-sale); font-weight: 800; font-size: 1.2rem; }
.product-miniature .product-miniature__add.btn {
  border-radius: var(--md-radius-pill);
  font-weight: 700;
  background: linear-gradient(135deg, var(--md-accent), var(--md-primary));
  border: 0;
  color: #fff;
  box-shadow: 0 8px 18px rgba(241, 92, 84, .26);
  transition: transform .18s, box-shadow .18s;
}
.product-miniature .product-miniature__add.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(241, 92, 84, .36);
}
.product-miniature .product-miniature__details.btn {
  border: 2px solid var(--md-primary);
  background: #fff;
  color: var(--md-primary-700);
  border-radius: var(--md-radius-pill);
  font-weight: 700;
}
.product-miniature .product-miniature__details.btn:hover { background: var(--md-primary); color: #fff; }
.md-mega--brands .md-mega__art { align-self: start; }
.md-mega--brands .md-mega__bname { font-size: .82rem; }

/* filled-on-hover buttons: keep the label white (generic .submenu a:hover would turn it orange) */
.md-mega a.md-mega__all--btn:hover,
.md-mega a.md-mega__all--btn:focus-visible,
.submenu a.md-mega__all--btn:hover { color: #fff; background: var(--md-primary); text-decoration: none; }
.module-products__buttons .btn:hover,
.module-products__buttons a.btn:hover,
.product-miniature .product-miniature__details.btn:hover,
.product-miniature .product-miniature__details.btn:focus-visible { color: #fff; }

/* dropdowns start below the header's colour stripe and carry the same stripe on their bottom edge */
@media (min-width: 1200px) {
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .submenu.md-mega { top: 100% !important; border-top: 0; }
  .md-mega {
    border-bottom: 4px solid transparent;
    border-image: repeating-linear-gradient(90deg, #F15C54 0 28px, #F8A43F 28px 56px, #FFD24D 56px 84px, #7FD1B9 84px 112px, #8EC9F5 112px 140px) 1;
    border-radius: 0;
  }
}
@media (min-width: 1200px) {
  .js-sub-menu.submenu.md-mega,
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .submenu.md-mega {
    border-width: 0 0 4px 0;
    border-style: solid;
    border-image: repeating-linear-gradient(90deg, #F15C54 0 28px, #F8A43F 28px 56px, #FFD24D 56px 84px, #7FD1B9 84px 112px, #8EC9F5 112px 140px) 1;
    border-radius: 0;
  }
}

/* dropdowns: fade in/out + invisible hover bridge so the pointer can travel from the label to the panel */
@media (min-width: 1200px) {
  .ps-mainmenu__tree-item-wrapper { position: relative; }
  .ps-mainmenu__tree-item-wrapper::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 48px; }

  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .submenu.md-mega {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .submenu.md-mega[style*="display: block"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .submenu.md-mega { transition: none !important; transform: none; }
}

/* ==========================================================================
   23. Quick view modal — clean two-column layout, sticky add-to-cart
   ========================================================================== */
.quickview .modal-dialog { max-width: min(1040px, 94vw); }
.quickview__content { border: 0; border-radius: var(--md-radius-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(40, 30, 20, .35); }
.quickview__header { border: 0; padding: .6rem .8rem 0; position: absolute; top: 0; right: 0; z-index: 5; }
.quickview__header .btn-close { background-color: #fff; border-radius: 50%; padding: .7rem; box-shadow: var(--md-shadow-xs); opacity: 1; }
.quickview__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2rem;
  padding: 2rem;
  align-items: start;
}
@media (max-width: 767.98px) {
  .quickview__body { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
}
.quickview__body .product__left { position: sticky; top: 0; }
.quickview__body .product__left .product__images { border-radius: var(--md-radius-lg); }
.quickview .product__right {
  position: static;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.quickview .product__name { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; margin-right: 2.5rem; }
.quickview .product__prices-block { margin: .8rem 0; padding: .8rem 1rem; }
.quickview .product__price { font-size: 1.8rem; }
.quickview .product__description-short {
  max-height: 9.5rem;
  overflow-y: auto;
  padding-right: .5rem;
  font-size: .92rem;
  line-height: 1.55;
}
.quickview .product__description-short table { font-size: .82rem; max-width: 100%; }
.quickview .product__add-to-cart-container {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 1rem;
  padding: .9rem 0 .2rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 28%);
}
.quickview__footer { border-top: 1px solid var(--md-border); padding: .9rem 2rem; justify-content: space-between; }
.quickview__details-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .55rem 1.2rem;
  border: 2px solid var(--md-primary);
  border-radius: var(--md-radius-pill);
  font-weight: 700;
  text-decoration: none;
  color: var(--md-primary-700);
  transition: background .2s, color .2s;
}
.quickview__details-link:hover { background: var(--md-primary); color: #fff; }

.md-auth__back { margin: 1rem 0 0; text-align: center; }
.md-auth__back a { font-weight: 700; color: var(--md-primary-700); text-decoration: none; }
.md-auth__back a:hover { text-decoration: underline; }
.md-auth__body .forgotten-password .btn-primary { width: 100%; }
.quickview .product__description-short { overflow-x: hidden; }

/* product card: same generous side inset for name, price and button */
.product-miniature__bottom { padding: .9rem 1.2rem .5rem; }
.product-miniature__actions { padding-inline: 1.2rem; padding-bottom: 1.2rem; }
.product-miniature__flags, .product-miniature .product-flags { left: .9rem; top: .9rem; }

/* card inset: one value for title, price and button */
.product-miniature__bottom { padding-inline: 1.4rem; }
.product-miniature__actions { padding-inline: 0; padding-bottom: 1.2rem; }

/* empty category: friendly sad face */
.md-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 2px dashed #F8C9A0;
  border-radius: var(--md-radius-lg);
  background: #FFF6EE;
}
.md-empty__face { margin-bottom: .5rem; animation: md-sad-bob 3.2s ease-in-out infinite; }
.md-empty p { margin: 0; max-width: 34rem; }
@keyframes md-sad-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .md-empty__face { animation: none; } }

/* facet range sliders: visible handles + numeric inputs */
.search-filters__slider { margin: 1.4rem .9rem .6rem; }
.search-filters__slider .noUi-handle {
  width: 22px; height: 22px; top: -9px; right: -11px;
  border: 3px solid var(--md-primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--md-shadow-xs);
  cursor: grab;
}
.search-filters__slider .noUi-handle::before, .search-filters__slider .noUi-handle::after { display: none; }
.search-filters__slider .noUi-connect { background: var(--md-primary); }
.search-filters__slider-values { text-align: center; font-weight: 700; color: var(--md-heading); margin: .4rem 0; }
.md-range-inputs { display: flex; align-items: center; gap: .5rem; margin: .6rem .2rem .4rem; }
.md-range-inputs input {
  flex: 1 1 0; min-width: 0;
  padding: .45rem .6rem;
  border: 1px solid var(--md-border-strong);
  border-radius: var(--md-radius);
  font-weight: 600;
  text-align: center;
}
.md-range-inputs input:focus { border-color: var(--md-primary); outline: 0; box-shadow: 0 0 0 3px rgba(241, 92, 84, .16); }
.md-range-inputs span { color: var(--md-muted); }

/* ==========================================================================
   24. Playful empty / 404 states
   ========================================================================== */
.md-empty, .page-content--not-found {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}
.md-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  padding: 2.5rem 1.5rem 2rem;
  margin-bottom: 1.25rem;
  border: 3px solid #FFE1C7;
  background:
    radial-gradient(circle at 12% 18%, #FFF0DC 0 60px, transparent 61px),
    radial-gradient(circle at 90% 82%, #E9F5FD 0 80px, transparent 81px),
    #FFFBF6;
}
.md-empty::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, #F15C54 0 28px, #F8A43F 28px 56px, #FFD24D 56px 84px, #7FD1B9 84px 112px, #8EC9F5 112px 140px);
}
.md-empty .h3 { font-family: 'Dosis', var(--md-font), sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--md-primary-700); margin: .3rem 0 0; }
.md-empty p { margin: 0; max-width: 34rem; }
.md-sad { flex: none; width: min(300px, 80%); height: auto; animation: md-sad-bob 3.4s ease-in-out infinite; }
@keyframes md-sad-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(6px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .md-sad { animation: none; } }

.md-404 { display: flex; justify-content: center; margin-bottom: .5rem; }
.page-content--not-found {
  padding: 1rem 1rem 2rem;
}
.page-content--not-found .h2 { font-weight: 800; color: var(--md-primary-700); }

/* ==========================================================================
   25. Header icons — soft pastel "bubbles" with a little wiggle
   ========================================================================== */
.header-bottom__utility .header-block__icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  font-size: 1.5rem;
  border-radius: 58% 42% 55% 45% / 50% 56% 44% 50%;
  transition: transform .25s ease, border-radius .35s ease, background-color .2s;
}
.header-bottom__utility a.header-util__item .header-block__icon { background: #E4F6F0; color: #2A9A7B; }                       /* rejestracja */
.header-bottom__utility #_desktop_ps_customersignin .header-block__icon { background: #E3F2FC; color: #3287C4; }                /* logowanie */
.header-bottom__utility #_desktop_ps_shoppingcart .header-block__icon { background: #FFEBDD; color: #E8742A; }                  /* koszyk */

.header-bottom__utility .header-block__action-btn:hover .header-block__icon {
  border-radius: 46% 54% 45% 55% / 55% 46% 54% 45%;
  animation: md-wiggle .5s ease;
}
.header-bottom__utility .header-block__action-btn:hover .header-block__title { color: var(--md-primary-700); }
@keyframes md-wiggle {
  0%   { transform: rotate(0) scale(1); }
  25%  { transform: rotate(-9deg) scale(1.08); }
  55%  { transform: rotate(7deg) scale(1.1); }
  80%  { transform: rotate(-3deg) scale(1.05); }
  100% { transform: rotate(0) scale(1.06); }
}
/* cart count pops in */
.header-bottom__utility .header-block__badge { top: -2px; right: 6px; box-shadow: 0 2px 6px rgba(241, 92, 84, .4); }
@media (prefers-reduced-motion: reduce) {
  .header-bottom__utility .header-block__action-btn:hover .header-block__icon { animation: none; }
}

/* ==========================================================================
   26. Buttons — toy-like press effect + soft clouds along the edges (subtle)
   ========================================================================== */
:root { --md-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 64'%3E%3Cg fill='%23FFD9B8' fill-opacity='.42'%3E%3Ccircle cx='30' cy='40' r='22'/%3E%3Ccircle cx='58' cy='28' r='28'/%3E%3Ccircle cx='90' cy='40' r='22'/%3E%3Crect x='30' y='40' width='60' height='24' rx='12'/%3E%3C/g%3E%3C/svg%3E"); }

.btn-primary,
.product-miniature .product-miniature__add.btn,
.product__add-to-cart-button.btn,
.md-btn--primary,
.md-auth__body .btn-primary {
  background-image:
    var(--md-cloud), var(--md-cloud),
    linear-gradient(135deg, var(--md-accent), var(--md-primary));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 54px auto, 42px auto, 100% 100%;
  background-position: left -12px bottom -16px, right -10px top -16px, center;
  box-shadow: 0 8px 18px rgba(241, 92, 84, .28);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s, background-position .45s ease, color .2s;
}
.btn-primary:hover,
.product-miniature .product-miniature__add.btn:hover,
.product__add-to-cart-button.btn:hover:not(:disabled),
.md-btn--primary:hover {
  background-position: left -2px bottom -14px, right -2px top -14px, center;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(241, 92, 84, .38);
}
.btn-primary:active,
.product-miniature .product-miniature__add.btn:active,
.product__add-to-cart-button.btn:active,
.md-btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 3px 8px rgba(241, 92, 84, .3);
}
.btn-primary:disabled, .btn-primary.disabled, .product__add-to-cart-button.btn:disabled { box-shadow: none; background-image: none; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-primary:hover, .btn-primary:active,
  .product-miniature .product-miniature__add.btn, .md-btn--primary { transition: none; }
}

/* "No image available" placeholders -> quiet pastel picture icon */
img[src*="-default-"], img[src$="/img/p/pl-default.jpg"], img[src*="/pl-default"] {
  content: url("../img/no-image.svg");
  object-fit: contain;
  background: #F7F7F9;
}

/* ==========================================================================
   27. Banner controls — round soft arrows only (pagination removed)
   ========================================================================== */
.ps-imageslider .carousel-control-prev,
.ps-imageslider .carousel-control-next {
  width: 4.6rem;
  opacity: 1;
  background: none;
}
.ps-imageslider .carousel-control-prev-icon,
.ps-imageslider .carousel-control-next-icon {
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(60, 40, 20, .22), 0 0 0 4px rgba(255, 255, 255, .35);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background-color .2s, box-shadow .2s;
}
.ps-imageslider .carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F15C54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4 7 12l8 8'/%3E%3C/svg%3E"); }
.ps-imageslider .carousel-control-next-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F15C54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E"); }
.ps-imageslider .carousel-control-prev:hover .carousel-control-prev-icon { transform: translateX(-3px) scale(1.08); background-color: var(--md-primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4 7 12l8 8'/%3E%3C/svg%3E"); }
.ps-imageslider .carousel-control-next:hover .carousel-control-next-icon { transform: translateX(3px) scale(1.08); background-color: var(--md-primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E"); }

.ps-imageslider .carousel-indicators {
  left: 50%;
  right: auto;
  bottom: 1.3rem;
  width: auto;
  margin: 0;
  padding: .5rem .85rem;
  gap: .45rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 14px rgba(60, 40, 20, .18);
}
.ps-imageslider .carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #EBCDB6;
  opacity: 1;
  text-indent: -9999px;
  transition: width .25s ease, background .2s;
}
.ps-imageslider .carousel-indicators .active { width: 28px; background: linear-gradient(90deg, var(--md-accent), var(--md-primary)); }
/* a single slide needs no arrows or pagination */
.ps-imageslider .carousel:not(:has(.carousel-item ~ .carousel-item)) .carousel-control-prev,
.ps-imageslider .carousel:not(:has(.carousel-item ~ .carousel-item)) .carousel-control-next,
.ps-imageslider .carousel:not(:has(.carousel-item ~ .carousel-item)) .carousel-indicators { display: none; }
@media (max-width: 767.98px) {
  .ps-imageslider .carousel-control-prev, .ps-imageslider .carousel-control-next { width: 3.6rem; }
  .ps-imageslider .carousel-control-prev-icon, .ps-imageslider .carousel-control-next-icon { width: 2.4rem; height: 2.4rem; background-size: 1.1rem; }
}

/* ==========================================================================
   28. Home text panel + promo band — playful frame with soft clouds
   ========================================================================== */
.ps-customtext .container {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.2rem);
  border: 3px solid #FFE1C7;
  border-radius: 30px;
  background-color: #FFFBF6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 64'%3E%3Cg fill='%23DCEFFC'%3E%3Ccircle cx='30' cy='40' r='22'/%3E%3Ccircle cx='58' cy='28' r='28'/%3E%3Ccircle cx='90' cy='40' r='22'/%3E%3Crect x='30' y='40' width='60' height='24' rx='12'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 64'%3E%3Cg fill='%23FDE6D2'%3E%3Ccircle cx='30' cy='40' r='22'/%3E%3Ccircle cx='58' cy='28' r='28'/%3E%3Ccircle cx='90' cy='40' r='22'/%3E%3Crect x='30' y='40' width='60' height='24' rx='12'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 64'%3E%3Cg fill='%23E6F6F0'%3E%3Ccircle cx='30' cy='40' r='22'/%3E%3Ccircle cx='58' cy='28' r='28'/%3E%3Ccircle cx='90' cy='40' r='22'/%3E%3Crect x='30' y='40' width='60' height='24' rx='12'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 150px auto, 120px auto, 90px auto;
  background-position: right -30px top 26px, left -26px bottom 18px, right 12% bottom -18px;
}
.ps-customtext .container::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, #F15C54 0 28px, #F8A43F 28px 56px, #FFD24D 56px 84px, #7FD1B9 84px 112px, #8EC9F5 112px 140px);
}
.ps-customtext .container > * { position: relative; }
.ps-promos { background: linear-gradient(180deg, #FFEFEA, #FFF7F1); }
.ps-promos .section-title, .ps-promos .h2 { color: #111; }

/* section titles: little star / cloud / heart divider instead of a plain bar */
.module-products .section-title, .md-brands .section-title { padding-bottom: 2.4rem; }
.module-products .section-title::after, .md-brands .section-title::after {
  width: 260px;
  height: 28px;
  bottom: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='28' viewBox='0 0 260 28'%3E%3Ccircle cx='18' cy='14' r='2' fill='%23F8A43F'/%3E%3Ccircle cx='32' cy='14' r='2' fill='%23FFD24D'/%3E%3Ccircle cx='46' cy='14' r='2' fill='%237FD1B9'/%3E%3Ccircle cx='214' cy='14' r='2' fill='%237FD1B9'/%3E%3Ccircle cx='228' cy='14' r='2' fill='%23FFD24D'/%3E%3Ccircle cx='242' cy='14' r='2' fill='%23F8A43F'/%3E%3Cpolygon points='76.0,5.0 78.5,10.5 84.6,11.2 80.1,15.3 81.3,21.3 76.0,18.3 70.7,21.3 71.9,15.3 67.4,11.2 73.5,10.5' fill='%23FFD24D'/%3E%3Cg transform='translate(113.5 4.1) scale(1.1)' fill='%238EC9F5'%3E%3Ccircle cx='8' cy='14' r='6'/%3E%3Ccircle cx='15' cy='9' r='8'/%3E%3Ccircle cx='23' cy='14' r='6'/%3E%3Crect x='8' y='14' width='15' height='6' rx='3'/%3E%3C/g%3E%3Cpath transform='translate(184 13) scale(1.2)' d='M0 5 C-10 -3 -4 -11 0 -5 C4 -11 10 -3 0 5Z' fill='%23F15C54'/%3E%3C/svg%3E") center / contain no-repeat;
}
.module-products .section-title::after, .md-brands .section-title::after { left: 50%; transform: translateX(-50%); display: block; }

/* ==========================================================================
   29. One button system — primary / outline / neutral share size, radius, weight
   ========================================================================== */
.btn-primary:not(.btn-square-icon):not(.btn-sm),
.btn-outline-primary:not(.btn-square-icon):not(.btn-sm),
.btn-basic:not(.btn-square-icon):not(.btn-sm),
.btn-outline-tertiary:not(.btn-square-icon):not(.btn-sm) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .7rem 1.6rem;
  border-radius: var(--md-radius-pill);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
}
.btn-primary:not(.btn-square-icon):not(.btn-sm) { border: 2px solid transparent; color: #fff; }

/* outline: white pill with a coral edge; fills like the primary button on hover */
.btn-outline-primary:not(.btn-square-icon) {
  border: 2px solid var(--md-primary);
  background-color: #fff;
  background-image: none;
  color: var(--md-primary-700);
  box-shadow: none;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s, background-color .2s, color .2s;
}
.btn-outline-primary:not(.btn-square-icon):hover,
.btn-outline-primary:not(.btn-square-icon):focus-visible {
  color: #fff;
  border-color: transparent;
  background-color: transparent;
  background-image: var(--md-cloud), var(--md-cloud), linear-gradient(135deg, var(--md-accent), var(--md-primary));
  background-repeat: no-repeat;
  background-size: 54px auto, 42px auto, 100% 100%;
  background-position: left -2px bottom -14px, right -2px top -14px, center;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(241, 92, 84, .38);
}
.btn-outline-primary:not(.btn-square-icon):active { transform: translateY(3px); box-shadow: 0 3px 8px rgba(241, 92, 84, .3); }

/* neutral: quiet grey outline, coral on hover */
.btn-basic:not(.btn-square-icon),
.btn-outline-tertiary:not(.btn-square-icon) {
  border: 2px solid var(--md-border-strong);
  background: #fff;
  color: var(--md-heading);
  box-shadow: none;
  transition: border-color .2s, color .2s, background-color .2s, transform .18s;
}
.btn-basic:not(.btn-square-icon):hover,
.btn-outline-tertiary:not(.btn-square-icon):hover {
  border-color: var(--md-primary);
  color: var(--md-primary-700);
  background: var(--md-primary-050);
  transform: translateY(-2px);
}
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .btn-outline-primary, .btn-basic, .btn-outline-tertiary { transition: none; }
}

/* ==========================================================================
   30. The same playful divider under page / listing titles
   ========================================================================== */
#main > .page-header h1,
.page-header .h1,
h1.page-title-section,
.page-title-section h1,
.page-title-section .h1,
h1.page-title, h1.page-title-section { position: relative; padding-bottom: 2.2rem; }
#main > .page-header h1::after,
.page-header .h1::after,
h1.page-title-section::after,
.page-title-section h1::after,
.page-title-section .h1::after,
h1.page-title::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='28' viewBox='0 0 260 28'%3E%3Ccircle cx='18' cy='14' r='2' fill='%23F8A43F'/%3E%3Ccircle cx='32' cy='14' r='2' fill='%23FFD24D'/%3E%3Ccircle cx='46' cy='14' r='2' fill='%237FD1B9'/%3E%3Ccircle cx='214' cy='14' r='2' fill='%237FD1B9'/%3E%3Ccircle cx='228' cy='14' r='2' fill='%23FFD24D'/%3E%3Ccircle cx='242' cy='14' r='2' fill='%23F8A43F'/%3E%3Cpolygon points='76.0,5.0 78.5,10.5 84.6,11.2 80.1,15.3 81.3,21.3 76.0,18.3 70.7,21.3 71.9,15.3 67.4,11.2 73.5,10.5' fill='%23FFD24D'/%3E%3Cg transform='translate(113.5 4.1) scale(1.1)' fill='%238EC9F5'%3E%3Ccircle cx='8' cy='14' r='6'/%3E%3Ccircle cx='15' cy='9' r='8'/%3E%3Ccircle cx='23' cy='14' r='6'/%3E%3Crect x='8' y='14' width='15' height='6' rx='3'/%3E%3C/g%3E%3Cpath transform='translate(184 13) scale(1.2)' d='M0 5 C-10 -3 -4 -11 0 -5 C4 -11 10 -3 0 5Z' fill='%23F15C54'/%3E%3C/svg%3E") left center / contain no-repeat;
}
.text-center .page-title-section h1::after, .text-center .page-header .h1::after { left: 50%; transform: translateX(-50%); background-position: center; }
/* sidebar / block headings: the small divider too, but tighter */
.footer-block__title::after, .left-block .h6::after { content: none; }


/* the mobile "Filtr" toggle keeps the theme's own show/hide rule */
@media (min-width: 768px) { .products__filter-button { display: none !important; } }
@media (max-width: 767.98px) { .products__filter-button { display: inline-flex; } }

/* the 2px transparent border must be painted by the gradient too (no white rim) */
.btn-primary,
.product-miniature .product-miniature__add.btn,
.product__add-to-cart-button.btn,
.md-btn--primary,
.md-auth__body .btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  background-origin: border-box;
  background-clip: border-box;
}
/* older shorthand rules reset the origin — force it for every gradient button */
.btn:not(.btn-square-icon):not(.btn-close):not(.btn-link) { background-origin: border-box !important; }

/* 31. Mega-menu tiles: show the whole picture (no cropping) */
.md-mega__ticon { position: relative; display: block; }
.md-mega__ticon img {
  position: absolute; inset: 0;
  box-sizing: border-box;
  width: 100%; height: 100%;
  padding: .5rem;
  object-fit: contain; object-position: center;
}

/* 32. Banner: back to container width with rounded corners; pagination bar removed, arrows drive the slides */
.ps-imageslider .carousel-indicators { display: none !important; }
.ps-imageslider .carousel-control-prev, .ps-imageslider .carousel-control-next { z-index: 3; }

/* ==========================================================================
   33. Home brand slider
   ========================================================================== */
.md-brands { padding-block: 1rem 2rem; }
.md-brands .section-title { text-align: center; position: relative; }
.md-brands__wrap { position: relative; padding-inline: 3.2rem; }
.md-brands__track {
  display: flex; gap: 1rem; margin: 0; padding: .6rem .2rem 1rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.md-brands__track::-webkit-scrollbar { display: none; }
.md-brands__item { flex: 0 0 calc((100% - 5rem) / 6); scroll-snap-align: start; min-width: 130px; }
.md-brands__card {
  display: grid; place-items: center; height: 100px; padding: .8rem 1rem;
  border: 2px solid #FFE1C7; border-radius: var(--md-radius-lg); background: #fff;
  box-shadow: var(--md-shadow-xs); text-decoration: none; color: var(--md-heading);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), border-color .2s, box-shadow .2s;
}
.md-brands__card:hover { transform: translateY(-4px); border-color: var(--md-primary); box-shadow: var(--md-shadow); }
.md-brands__card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.md-brands__card--text span { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.md-brands__arrow {
  position: absolute; top: calc(50% - .2rem); width: 2.6rem; height: 2.6rem; padding: 0; transform: translateY(-50%);
  border: 0; border-radius: 50%; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(60, 40, 20, .18); cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background-color .2s;
}
.md-brands__arrow--prev { left: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F15C54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4 7 12l8 8'/%3E%3C/svg%3E"); }
.md-brands__arrow--next { right: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F15C54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E"); }
.md-brands__arrow--prev:hover { transform: translateY(-50%) translateX(-2px) scale(1.08); background-color: var(--md-primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4 7 12l8 8'/%3E%3C/svg%3E"); }
.md-brands__arrow--next:hover { transform: translateY(-50%) translateX(2px) scale(1.08); background-color: var(--md-primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E"); }
.md-brands__footer { display: flex; justify-content: center; margin-top: .4rem; }
@media (max-width: 991.98px) { .md-brands__item { flex-basis: calc((100% - 3rem) / 4); } }
@media (max-width: 575.98px) {
  .md-brands__wrap { padding-inline: 0; }
  .md-brands__item { flex-basis: calc((100% - 1rem) / 2.4); min-width: 0; }
  .md-brands__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .md-brands__track { scroll-behavior: auto; } }
.md-brands__track { cursor: grab; }
.md-brands__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.md-brands__track.is-dragging a { pointer-events: none; }

/* 34. Home product sections (promos, featured, bestsellers…): 5 cards per row on desktop, up to 10 items.
   Fewer columns on smaller screens; surplus cards are hidden so the last row is never left half-empty. */
.module-products__list .products { grid-template-columns: repeat(5, minmax(0, 1fr)); justify-content: stretch; gap: 1.5rem 1rem; }
@media (max-width: 1199.98px) {
  .module-products__list .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .module-products__list .products > *:nth-child(n+9) { display: none; }
}
@media (max-width: 991.98px) {
  .module-products__list .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .module-products__list .products > *:nth-child(n+7) { display: none; }
}
@media (max-width: 767.98px) {
  .module-products__list .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .6rem; }
  .module-products__list .products > *:nth-child(n+7) { display: block; }
}
@media (max-width: 380px) { .module-products__list .products { gap: .8rem .4rem; } }
.md-brands__track.is-marquee { scroll-snap-type: none; scroll-behavior: auto; }

/* 35. Home section titles: black, uppercase (promotions too) */
.page-content--home .section-title,
.page-content--home .module-products .section-title,
.page-content--home .md-brands .section-title,
.page-content--home .featured-products .h2 {
  color: #111;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.page-content--home .ps-promos .section-title,
.page-content--home .ps-promos .module-products .section-title,
.page-content--home .ps-promos .h2 { color: #111; }

/* 36. Home banner: equal breathing room above and below (home grid adds a 2.5rem row gap, compensated here) */
.page-content--home { --md-banner-gap: 30px; }
.page-content--home .ps-imageslider,
.page-content--home .ps-imageslider:first-child { margin-top: var(--md-banner-gap); margin-bottom: calc(var(--md-banner-gap) - 2.5rem); }
.page-content--home .ps-imageslider + section { margin-top: 0; }
@media (max-width: 767.98px) { .page-content--home { --md-banner-gap: 16px; } }

/* ==========================================================================
   37. RWD hardening (tablet / phone)
   ========================================================================== */
/* decorative shapes and sliders must never create a horizontal page scroll */
html, body { overflow-x: clip; }

@media (max-width: 991.98px) {
  .quickview__body .product__left { position: static; }
  .quickview__footer { padding: .8rem 1.25rem; }
}

@media (max-width: 767.98px) {
  /* section headings + divider scale down */
  .module-products, .md-brands { padding-block: 1.6rem; }
  .module-products .section-title, .md-brands .section-title { font-size: clamp(1.25rem, 6vw, 1.6rem); margin-bottom: 1rem; padding-bottom: 2rem; }
  .module-products .section-title::after, .md-brands .section-title::after { width: 210px; }
  .module-products__buttons .btn, .md-brands__footer .btn { width: 100%; max-width: 360px; }

  /* banner: tighter, arrows smaller and closer to the edge */
  .ps-imageslider .carousel-control-prev, .ps-imageslider .carousel-control-next { width: 3rem; }

  /* login / register modal: nearly full-screen sheet */
  dialog.md-auth { width: 96vw; max-height: 94vh; border-radius: var(--md-radius); }
  .md-auth__tabs { padding: .9rem 1rem 0; }
  .md-auth__body { padding: 1rem 1rem 1.3rem; }

  /* quick view */
  .quickview .modal-dialog { margin: .5rem auto; }
  .quickview__body { padding: 1rem; }
  .quickview .product__price { font-size: 1.5rem; }

  /* text panel + newsletter breathe less */
  .ps-customtext .container { border-width: 2px; border-radius: 22px; }
  .footer__before .ps-emailsubscription { border-radius: 22px; }

  /* comfortable tap targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
}

@media (max-width: 380px) {
  .module-products__list .products { gap: .8rem .4rem; }
  .product-miniature__title, .product-miniature .product-miniature__title { font-size: .85rem; }
}
/* the desktop header overlaps the content by ~20px (sticky compaction compensation) — add it back so the gap above equals the gap below */
@media (min-width: 1200px) {
  .page-content--home .ps-imageslider,
  .page-content--home .ps-imageslider:first-child { margin-top: calc(var(--md-banner-gap) + 20px); }
}

/* 38. Phone fixes found in a 390px test */
@media (max-width: 767.98px) {
  /* banner: show the whole picture (it is a wide 3.2:1 image), no fixed 240px height */
  .ps-imageslider .container,
  .ps-imageslider .carousel,
  .ps-imageslider .carousel-inner,
  .ps-imageslider .carousel-item,
  .ps-imageslider__link,
  .ps-imageslider__figure { height: auto !important; }
  .ps-imageslider .carousel-item img { width: 100%; height: auto !important; aspect-ratio: auto; object-fit: contain; }

  /* product card CTAs: full width, one line, no icon */
  .product-miniature__bottom { padding-inline: .6rem; }
  .product-miniature__actions, .product-miniature__form { width: 100%; }
  .product-miniature .product-miniature__add.btn,
  .product-miniature .product-miniature__details.btn {
    width: 100%; padding: .55rem .4rem; font-size: .85rem; line-height: 1.2; white-space: normal; justify-content: center; min-height: 40px;
  }
  .product-miniature .product-miniature__add .material-icons { display: none; }
}

/* 39. Promotions: same translucent full-width band as the other home sections, so the side shapes show through */
.ps-promos { background: rgba(255, 244, 235, .8); }
.ps-promos .module-products { background: none; border-radius: 0; }

/* 40. Product page discount badge: Bootstrap's .text-primary-emphasis (!important) was winning over the white text */
span.product__discount-percentage.text-primary-emphasis,
span.product__discount-amount.text-primary-emphasis,
.product__discount-percentage.text-primary-emphasis,
.product__discount-amount.text-primary-emphasis {
  color: #fff !important;
  background: #E24A12;
}
/* .text-primary-emphasis is a layered !important utility, so the only reliable override is its variable */
.product__discount-percentage, .product__discount-amount { --bs-primary-text-emphasis: #fff; }

/* ==========================================================================
   41. Product page: one two-column layout (no gap under the gallery) + trust points inside the buy box
   ========================================================================== */
@media (min-width: 992px) {
  .product__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    margin-bottom: 2.5rem;
  }
  .product__layout > .product__container,
  .product__layout > .product__bottom { display: contents; }
  .product__layout .product__left { grid-column: 1; grid-row: 1; }
  .product__layout .product__right { grid-column: 2; grid-row: 1 / span 2; }
  .product__layout .product__bottom-left { grid-column: 1; grid-row: 2; margin-top: 1.5rem; margin-bottom: 0; }
}
@media (max-width: 991.98px) {
  .product__layout > .product__bottom { display: block; }
  .product__layout .product__bottom-left { margin-bottom: 1.5rem; }
}

/* trust points (blockreassurance) — compact, kid-friendly list inside the buy box */
.product__reassurance { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px dashed #FFE1C7; }
.product__reassurance .blockreassurance { display: grid; gap: .6rem; }
.product__reassurance .reassurance {
  display: flex; align-items: center; gap: .85rem; margin: 0; padding: .6rem .8rem;
  background: #FFFBF6; border: 1px solid #FFE1C7; border-radius: var(--md-radius);
  color: var(--md-ink); text-decoration: none; line-height: 1.25;
}
.product__reassurance a.reassurance:hover { border-color: var(--md-primary); box-shadow: var(--md-shadow-xs); }
.product__reassurance .reassurance__image {
  display: grid; place-items: center; flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(241, 92, 84, .15);
}
.product__reassurance .reassurance__image img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.product__reassurance .reassurance__title { color: var(--md-heading); font-weight: 700; font-size: .95rem; }
.product__reassurance .reassurance__desc { display: block; margin-top: .1rem; color: var(--md-muted); font-size: .8rem; }

/* 42. Layout-shift guard: reserve the banner's space before the image arrives (PageSpeed CLS) */
.ps-imageslider .carousel-item img { width: 100%; height: auto; aspect-ratio: 3200 / 1000; }
@media (max-width: 767.98px) { .ps-imageslider .carousel-item img { aspect-ratio: 3200 / 1000; } }

/* 43. Contrast fixes (PageSpeed / WCAG AA 4.5:1): muted text, footer + copyright links, newsletter copy */
:root { --bs-secondary-color: #5f6470; }
.copyright, .copyright a, .footer .copyright { color: var(--md-muted); }
.copyright a, .footer .copyright a { color: var(--md-primary-700); font-weight: 600; }
.footer a[rel="home"] { color: var(--md-primary-700); }
.ps-emailsubscription .text-body-secondary, .ps-emailsubscription p.fs-6 { color: #4b5058 !important; }

/* 44. Native controls in the shop's colour instead of the browser's blue (sort select list, checkboxes, radios, sliders) */
:root { accent-color: var(--md-primary); color-scheme: light; }
select option {
  background-color: #fff;
  color: var(--md-ink);
}
/* highlighted / hovered / selected row of an open <select>: soft coral instead of system blue
   (the inset box-shadow is the reliable way to recolour the highlight in Chromium and Firefox) */
select option:checked,
select option:hover,
select option:focus,
select option:active {
  background-color: #FDE3E0;
  background-image: linear-gradient(#FDE3E0, #FDE3E0);
  box-shadow: 0 0 10px 100px #FDE3E0 inset;
  color: var(--md-primary-700);
}

/* 45. Dropdown menus (sort order, language, currency…): coral highlight instead of Bootstrap's blue */
.dropdown-menu {
  --bs-dropdown-link-color: var(--md-ink);
  --bs-dropdown-link-hover-color: var(--md-primary-700);
  --bs-dropdown-link-hover-bg: #FDE3E0;
  --bs-dropdown-link-active-color: var(--md-primary-700);
  --bs-dropdown-link-active-bg: #FDE3E0;
  --bs-dropdown-border-radius: var(--md-radius);
  --bs-dropdown-inner-border-radius: calc(var(--md-radius) - 1px);
}
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item:focus-visible,
.dropdown-item.active, .dropdown-item:active, .dropdown-item.current, .dropdown-item[aria-current="true"] {
  background-color: #FDE3E0;
  color: var(--md-primary-700);
}
.dropdown-item.current, .dropdown-item[aria-current="true"] { font-weight: 700; }
.dropdown-item:focus-visible { outline: 2px solid var(--md-primary); outline-offset: -2px; }

/* ==========================================================================
   46. Left column (category tree, filters, brands…): separate soft cards so they never blend into the list / copy
   ========================================================================== */
#left-column .left-block,
#left-column .search-filters-modules,
#left-column #search_filters_brands > * {
  background: #FFFBF6;
  border: 2px solid #FFE1C7;
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-xs);
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1.1rem;
}
/* the wrapper of the brands block is not a card itself */
#left-column #search_filters_brands { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
#left-column .left-block__title,
#left-column .search-filters-modules-title,
#left-column .left-block__title-link {
  margin: 0 0 .75rem;
  padding-bottom: .6rem;
  border-bottom: 2px dashed #FFE1C7;
  color: var(--md-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .95rem;
}
#left-column .left-block__title .left-block__title-link { margin: 0; padding: 0; border: 0; }
#left-column .accordion { --bs-accordion-bg: transparent; }
#left-column .accordion-item { background: transparent; }
@media (max-width: 767.98px) {
  #left-column .left-block, #left-column .search-filters-modules { margin-bottom: .9rem; }
}
