/* Protecta V12 — the shared header, footer controls and interaction finish.
   The small compensation below keeps the document still as the sticky header shrinks. */
body.pd-v12 {
  --pd-header-rest-height: 126px;
  --pd-topbar-height: 28px;
}

body.pd-v12 .site-header.v5-header {
  margin-bottom: var(--pd-shell-compensation, 0px);
  overflow-anchor: none;
  transition: box-shadow 180ms ease;
}

body.pd-v12 .site-header.is-compact-v12 {
  box-shadow: 0 5px 18px #112c4610;
}

body.pd-v12 .v5-header .v5-search {
  padding: 3px 4px 3px 12px;
  gap: 10px;
  background: #f6f8fa;
}

body.pd-v12 .v5-header .v5-search input[type='search'] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 44px;
}

body.pd-v12 .v5-search:focus-within {
  outline: 2px solid #b94d12;
  outline-offset: 3px;
}

body.pd-v12 .v5-header .v5-search input[type='search']:focus {
  outline: none;
  box-shadow: none;
}

body.pd-v12 .v5-search > button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
}

body.pd-v12 .v5-header :is(.pd-header-action, .menu-toggle) {
  min-height: 44px;
  min-width: 44px;
  border-radius: 9px;
}

/* No action disappears when scrolling; search, account, favorites and basket remain usable. */
@media (min-width: 1081px) and (min-height: 601px) {
  body.pd-v12 .v5-header .v5-header-main {
    min-height: 76px;
    padding-block: 12px;
    transition:
      min-height 180ms ease,
      padding 180ms ease;
  }

  body.pd-v12 .v5-header .v5-nav-row > .container {
    min-height: 48px;
    padding-block: 2px;
    transition:
      min-height 180ms ease,
      padding 180ms ease;
  }

  body.pd-v12 .v5-header .v5-desktop-nav > a {
    min-height: 44px;
    padding-block: 10px;
  }

  body.pd-v12 .v5-header.is-compact-v12 .v5-header-main {
    min-height: 60px;
    padding-block: 4px;
  }

  body.pd-v12 .v5-header.is-compact-v12 .v5-nav-row > .container {
    min-height: 44px;
    padding-block: 0;
  }
}

/* A resize measurement is synchronous; intermediate dimensions never reach the screen. */
body.pd-v12 .v5-header.v12-shell-measuring :is(.v5-header-main, .v5-nav-row > .container) {
  transition: none !important;
}

body.pd-v12 :is(.button, .btn, .sf7-button, .icon-button, .pd-header-action, .v12-social-link) {
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body.pd-v12 :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #b94d12;
  outline-offset: 4px;
}

body.pd-v12 .v5-header .v5-search input[type='search']:focus-visible {
  outline: none;
}

body.pd-v12 :is(.site-footer, .v9-home-hero) :is(a, button):focus-visible {
  outline-color: #ffad78;
}

body.pd-v12 .v5-footer .social-links {
  flex-wrap: wrap;
  gap: 10px;
}

body.pd-v12 .v5-footer .social-links > .v12-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  color: #e7eff5;
  background: #ffffff05;
  border: 1px solid #ffffff30;
  border-radius: 10px;
}

body.pd-v12 .v12-social-link > svg {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

@media (hover: hover) and (pointer: fine) {
  body.pd-v12 :is(.button, .btn, .sf7-button):not(:disabled):not([aria-disabled='true']):hover {
    transform: translateY(-1px);
  }

  body.pd-v12 .button:hover .icon:not(.flip) {
    transform: translateX(2px);
  }

  body.pd-v12 .v5-header .pd-header-action:hover {
    background: #f3f6f8;
  }

  body.pd-v12 .v5-footer .social-links > .v12-social-link:hover {
    color: #102c46;
    background: #ff9950;
    border-color: #ff9950;
    transform: translateY(-1px);
  }

  body.pd-v12 .v5-category:hover img {
    transform: scale(1.025);
  }
}

body.pd-v12 :is(.button, .btn, .sf7-button, .v12-social-link):not(:disabled):active {
  transform: translateY(1px);
}

/* Keep every mobile action at touch size and let the existing menu scroll naturally. */
@media (max-width: 1080px) {
  body.pd-v12 {
    --pd-header-rest-height: 68px;
  }
}

@media (max-width: 760px) {
  body.pd-v12 {
    --pd-header-rest-height: 118px;
  }
}

@media (max-height: 600px) {
  body.pd-v12 {
    --pd-header-rest-height: 0px;
  }

  body.pd-v12 .site-header.v5-header {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pd-v12
    :is(
      .site-header,
      .v5-header-main,
      .v5-nav-row > .container,
      .button,
      .button .icon,
      .btn,
      .sf7-button,
      .icon-button,
      .pd-header-action,
      .v12-social-link,
      .v5-category img
    ) {
    transition: none !important;
  }

  body.pd-v12 :is(.button, .btn, .sf7-button, .v12-social-link):is(:hover, :active),
  body.pd-v12 .button:hover .icon:not(.flip),
  body.pd-v12 .v5-category:hover img {
    transform: none;
  }
}

@media print {
  body.pd-v12 .site-header.v5-header {
    margin-bottom: 0;
  }
}
