/*
Theme Name: Toy4Love Blog
Theme URI: https://toy4love.pl/blog/
Description: Astra Child Theme — header, newsletter i footer odwzorowane z Toy4Love PrestaShop.
Author: Toy4Love
Template: astra
Version: 1.3.1
Text Domain: toy4love-blog
*/

:root {
  --t4l-primary: #ff4da6;
  --t4l-primary-hover: #e60073;
  --t4l-header-height: 194px;
  --t4l-header-z: 10000;
  --t4l-menu-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
  --t4l-footer-bg: #212529;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: var(--t4l-header-height, 194px) !important;
}

body.t4l-mobile-menu-open,
body.t4l-search-open {
  overflow: hidden;
}

/* Bootstrapowe szerokości Hummingbirda */
.container,
.container-md {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) {
  .container,
  .container-md {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container,
  .container-md {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container,
  .container-md {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container,
  .container-md {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-md {
    max-width: 1320px;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   HEADER — 4 paski jak w aktualnym PrestaShop
   ========================================================= */

#header-main.header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  z-index: var(--t4l-header-z) !important;
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

body.admin-bar #header-main.header {
  top: 32px !important;
}

/* ----- Pasek 1 ----- */

.header-top-info {
  position: relative;
  z-index: 3;
  padding: 7px 0;
  background: #f8f0e8;
  border-bottom: 1px solid #eee4dc;
}

.header-top-info .container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 15px;
}

.top-info-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.t4l-material-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  color: var(--t4l-primary);
}

.t4l-material-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* ----- Pasek 2 ----- */

.header-top {
  display: block;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

.header-top__row {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.header-top__left {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.header-top__right {
  display: flex;
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.ps-contactinfo__email {
  color: #3c4043;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none !important;
}

.ps-contactinfo__email:hover,
.ps-contactinfo__email:focus-visible {
  color: var(--t4l-primary);
}

.header-block__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3c4043;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none !important;
}

.header-block__action-btn:hover,
.header-block__action-btn:focus-visible {
  color: var(--t4l-primary);
}

.header-block__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.header-block__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.t4l-cart-icon {
  color: #0d6efd;
}

.header-block__badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  color: #303030;
  background: #f5f5f5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* ----- Pasek 3 ----- */

.header-bottom {
  background: #ffffff;
}

.header-bottom__row {
  display: flex;
  align-items: stretch;
  min-height: 72px;
  gap: 12px;
}

.header-bottom__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: 0;
}

.navbar-brand {
  display: block;
  padding: 0;
  margin: 0;
}

.header-bottom__logo .logo {
  display: block;
  width: auto;
  max-width: 136px;
  max-height: 58px;
  object-fit: contain;
}

.ps-mainmenu--desktop {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
}

.ps-mainmenu__desktop {
  position: static !important;
  display: block;
  width: 100%;
}

.ps-mainmenu__tree {
  display: flex !important;
  align-items: stretch !important;
  gap: 2px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-mainmenu__tree-item {
  position: static !important;
  display: flex;
  align-items: stretch;
}

.ps-mainmenu__tree-item-wrapper {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.ps-mainmenu__tree-link {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 12px 11px;
  color: #5f5f5f;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.ps-mainmenu__tree-dropdown-toggle {
  position: relative;
  width: 22px;
  height: 36px;
  margin: 0 8px 0 -7px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ps-mainmenu__tree-dropdown-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -70%) rotate(45deg);
}

.ps-mainmenu__tree-item:hover > .ps-mainmenu__tree-item-wrapper .ps-mainmenu__tree-link,
.ps-mainmenu__tree-item:focus-within > .ps-mainmenu__tree-item-wrapper .ps-mainmenu__tree-link,
.ps-mainmenu__tree-item.is-mega-open > .ps-mainmenu__tree-item-wrapper .ps-mainmenu__tree-link,
.ps-mainmenu__tree-item.current > .ps-mainmenu__tree-item-wrapper .ps-mainmenu__tree-link,
.ps-mainmenu__tree-link.is-current-category,
.ps-mainmenu__tree-link.is-current-parent {
  color: var(--t4l-primary) !important;
  border-bottom-color: var(--t4l-primary);
}

.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-dropdown-toggle,
.ps-mainmenu__tree-item.is-mega-open .ps-mainmenu__tree-dropdown-toggle,
.ps-mainmenu__tree-item.current .ps-mainmenu__tree-dropdown-toggle {
  color: var(--t4l-primary) !important;
}

/* Pełna szerokość mega menu */
.t4l-megamenu {
  position: fixed !important;
  top: var(--t4l-header-height, 194px) !important;
  right: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100vw !important;
  max-height: calc(100vh - var(--t4l-header-height, 194px) - 8px);
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  background: #ffffff;
  border-top: 1px solid #ececec;
  box-shadow: var(--t4l-menu-shadow);
  z-index: calc(var(--t4l-header-z) + 10) !important;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0s linear 0.12s;
}

.ps-mainmenu__tree-item.is-mega-open > .t4l-megamenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.t4l-megamenu__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px 28px;
}

.t4l-megamenu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 52px;
  row-gap: 26px;
}

.t4l-megamenu__group {
  min-width: 0;
}

.t4l-megamenu__heading {
  display: inline-block;
  margin: 0 0 4px;
  color: #333333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color 0.18s ease;
}

.t4l-megamenu__children {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.t4l-megamenu__children--nested {
  margin-top: 3px;
  padding-left: 11px;
  border-left: 1px solid #eeeeee;
}

.t4l-megamenu__child-link {
  display: inline-block;
  padding: 1px 0;
  color: #777777;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color 0.18s ease, transform 0.18s ease;
}

.t4l-megamenu__heading:hover,
.t4l-megamenu__heading:focus-visible,
.t4l-megamenu__child-link:hover,
.t4l-megamenu__child-link:focus-visible,
.t4l-megamenu__heading.is-current-category,
.t4l-megamenu__child-link.is-current-category {
  color: var(--t4l-primary) !important;
}

.t4l-megamenu__child-link:hover,
.t4l-megamenu__child-link:focus-visible {
  transform: translateX(2px);
}

/* Hamburger */
.ps-mainmenu__mobile-toggle {
  display: none;
  align-items: center;
  height: 100%;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 7px;
  color: #333;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Search desktop/tablet */
.t4l-desktop-search {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: auto;
}

.ps-searchbar {
  width: 305px;
}

.ps-searchbar__form {
  position: relative;
}

.ps-searchbar__input {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0 !important;
  padding: 8px 13px 8px 39px !important;
  color: #555555;
  background: #ffffff;
  border: 1px solid #dfe3e7 !important;
  border-radius: 4px !important;
  outline: 0;
  box-shadow: none !important;
  font-size: 15px;
}

.ps-searchbar__input:focus {
  border-color: rgba(255, 77, 166, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 166, 0.10) !important;
}

.ps-searchbar__magnifier,
.t4l-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 15px;
  height: 15px;
  border: 2px solid #40454b;
  border-radius: 50%;
  transform: translateY(-60%);
  pointer-events: none;
}

.ps-searchbar__magnifier::after,
.t4l-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: #40454b;
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Mobile-only akcje */
.t4l-mobile-header-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.t4l-mobile-search-button,
.t4l-mobile-icon-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #333333;
  background: transparent;
  border: 0;
  text-decoration: none !important;
}

.t4l-mobile-search-button .t4l-search-icon {
  position: relative;
  top: auto;
  left: auto;
  display: block;
  transform: none;
}

.t4l-mobile-icon-link svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.t4l-mobile-cart {
  color: #333333;
}

.t4l-mobile-cart .header-block__badge {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #ffffff;
  background: var(--t4l-primary);
  border: 2px solid #ffffff;
  font-size: 9px;
}

/* ----- Pasek 4 ----- */

.header-categories {
  position: relative;
  z-index: 4;
  background: #1a1a1a;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.header-categories .container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 15px;
}

.categories-nav > ul {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.categories-nav > ul > li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.categories-nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  color: #ffffff;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.categories-nav > ul > li > a:hover,
.categories-nav > ul > li > a:focus-visible,
.categories-nav > ul > li > a.is-current-category {
  color: var(--t4l-primary) !important;
  border-bottom-color: var(--t4l-primary);
  background: rgba(255, 255, 255, 0.035);
}

/* =========================================================
   MOBILE MENU — styl z Hummingbird
   ========================================================= */

.t4l-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--t4l-header-z) + 20);
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.t4l-mobile-backdrop.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

#mobileMenu.ps-mainmenu--mobile {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: calc(var(--t4l-header-z) + 30) !important;
  display: flex;
  flex-direction: column;
  width: min(100vw, 430px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  visibility: hidden;
  background: #ffffff;
  box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 0.23s ease, visibility 0s linear 0.23s;
}

#mobileMenu.is-open {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

#mobileMenu .offcanvas-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top)) 22px 12px;
  border-bottom: 1px solid #f0f0f0;
}

#mobileMenu .ps-mainmenu__back-button {
  min-width: 0;
}

#mobileMenu .js-back-button {
  display: none;
  align-items: center;
  gap: 9px;
  max-width: 310px;
  padding: 7px 4px;
  color: #444444;
  background: transparent;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

#mobileMenu .js-back-button.is-visible {
  display: inline-flex;
}

.t4l-back-chevron {
  width: 9px;
  height: 9px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

#mobileMenu .btn-close {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#mobileMenu .btn-close::before,
#mobileMenu .btn-close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 9px;
  width: 20px;
  height: 2px;
  background: #555555;
}

#mobileMenu .btn-close::before {
  transform: rotate(45deg);
}

#mobileMenu .btn-close::after {
  transform: rotate(-45deg);
}

#mobileMenu .ps-mainmenu__mobile {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#mobileMenu .menu--mobile {
  position: absolute;
  inset: 0;
  display: none;
  padding: 12px 0 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
}

#mobileMenu .menu--mobile.menu--current {
  display: block;
}

#mobileMenu .menu__list {
  margin: 0;
  padding: 0 24px;
  list-style: none;
}

#mobileMenu .menu__list > li {
  position: relative;
  min-height: 52px;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.035);
}

#mobileMenu .menu__title {
  min-height: auto !important;
  padding: 10px 0 18px;
  color: #1a1a1a;
  border-bottom: 0 !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

#mobileMenu .menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 52px 10px 0;
  color: #555555;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none !important;
}

#mobileMenu .menu__link:hover,
#mobileMenu .menu__link:focus-visible,
#mobileMenu .menu__link.is-current-category,
#mobileMenu .menu__link.is-current-parent {
  color: var(--t4l-primary) !important;
}

#mobileMenu .menu__link.is-current-category {
  font-weight: 700;
}

#mobileMenu .menu__toggle-child {
  position: absolute;
  top: 5px;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #777777;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#mobileMenu .menu__toggle-child span {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

#mobileMenu .ps-mainmenu__additionnals {
  flex: 0 0 auto;
  padding: 18px 24px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f0f0;
}

#mobileMenu .ps-mainmenu__additionnals a {
  color: #666666;
  font-size: 14px;
  text-decoration: none !important;
}

#mobileMenu .t4l-mobile-quick-heading {
  min-height: auto;
  margin-top: 15px;
  padding: 20px 0 9px;
  color: #1a1a1a;
  border-bottom: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#mobileMenu .t4l-mobile-quick-item {
  min-height: 46px;
}

#mobileMenu .t4l-mobile-quick-link {
  min-height: 46px;
  padding-right: 0;
  font-size: 16px;
}

#mobileMenu .t4l-mobile-quick-link::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 11px;
  background: var(--t4l-primary);
  border-radius: 50%;
}

/* =========================================================
   MOBILE SEARCH — offcanvas top
   ========================================================= */

.t4l-search-canvas {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: calc(var(--t4l-header-z) + 40);
  visibility: hidden;
  opacity: 0;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s;
}

body.admin-bar .t4l-search-canvas {
  top: 32px;
}

.t4l-search-canvas.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.t4l-search-canvas__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 16px;
}

.t4l-mobile-search-form {
  flex: 1 1 auto;
}

.t4l-search-cancel {
  flex: 0 0 auto;
  padding: 10px 0;
  color: #555555;
  background: transparent;
  border: 0;
  font-size: 14px;
  cursor: pointer;
}

/* =========================================================
   NEWSLETTER — dokładna struktura displayFooterBefore
   ========================================================= */

.ps-emailsubscription {
  padding: 24px 0;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.t4l-newsletter-row {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 24px;
  width: 83.333333%;
  margin: 0 auto;
}

.t4l-newsletter-title {
  margin: 0;
  color: #212529;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.t4l-newsletter-form {
  margin: 0;
}

.t4l-newsletter-fields {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.t4l-newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  margin: 0 !important;
  padding: 8px 12px !important;
  color: #495057;
  background: #ffffff;
  border: 1px solid #ced4da !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 16px;
}

.t4l-newsletter-input:focus {
  border-color: rgba(255, 77, 166, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 166, 0.12) !important;
  outline: 0;
}

.t4l-newsletter-submit {
  flex: 0 0 auto;
  height: 42px;
  margin: 0 !important;
  padding: 8px 18px !important;
  color: #ffffff;
  background: var(--t4l-primary);
  border: 1px solid var(--t4l-primary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.t4l-newsletter-submit:hover,
.t4l-newsletter-submit:focus-visible {
  background: var(--t4l-primary-hover);
  border-color: var(--t4l-primary-hover);
}

.t4l-newsletter-note {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
}

/* =========================================================
   FOOTER — dokładny ciemny kolor #212529
   ========================================================= */

#footer.t4l-footer {
  margin: 0;
  color: #f8f9fa;
  background: var(--t4l-footer-bg);
}

#footer .footer__main {
  padding: 40px 0 20px;
  background: var(--t4l-footer-bg);
}

#footer .footer__main-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

#footer .footer-block {
  min-width: 0;
}

#footer .footer-block__title {
  position: relative;
  margin: 0 0 28px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

#footer .footer-block__title > a {
  color: #ffffff;
  text-decoration: none !important;
}

#footer .footer-block__content {
  display: block;
}

#footer .footer-block__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .footer-block__list li {
  margin: 0 0 10px;
}

#footer .footer-block__list a,
#footer .ps-contactinfo a {
  color: #f1f3f5;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none !important;
}

#footer .footer-block__list a:hover,
#footer .footer-block__list a:focus-visible,
#footer .ps-contactinfo a:hover,
#footer .ps-contactinfo a:focus-visible {
  color: var(--t4l-primary);
}

#footer .ps-contactinfo__infos {
  margin: 0 0 18px;
  color: #f1f3f5;
  font-size: 16px;
  font-style: normal;
  line-height: 1.4;
}

#footer .ps-contactinfo__email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#footer .t4l-mail-icon {
  display: flex;
  width: 18px;
  height: 18px;
  color: #ffffff;
}

#footer .t4l-mail-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Sociale — dokładne wartości z custom.css sklepu */
#footer .ps-socialfollow.t4l-footer-socials {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

#footer .ps-socialfollow.t4l-footer-socials ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#footer .ps-socialfollow.t4l-footer-socials li {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

#footer .ps-socialfollow.t4l-footer-socials a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ff4da6 !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 77, 166, 0.22) !important;
  border-radius: 50% !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16) !important;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

#footer .ps-socialfollow.t4l-footer-socials a svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  color: inherit !important;
}

#footer .ps-socialfollow.t4l-footer-socials a:hover,
#footer .ps-socialfollow.t4l-footer-socials a:focus-visible {
  color: #e60073 !important;
  border-color: rgba(230, 0, 115, 0.38) !important;
  box-shadow: 0 5px 13px rgba(230, 0, 115, 0.22) !important;
  transform: translateY(-2px);
}

#footer .copyright {
  padding: 48px 0 0;
  color: #f1f3f5;
  font-size: 16px;
  text-align: center;
}

/* Footer accordion toggle */
.t4l-footer-toggle {
  display: none;
}

/* Powrót do góry */
.t4l-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99980;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  color: var(--t4l-primary);
  background: #ffffff;
  border: 2px solid var(--t4l-primary);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.t4l-back-to-top span {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.t4l-back-to-top:hover,
.t4l-back-to-top:focus-visible {
  color: #ffffff;
  background: var(--t4l-primary);
}

/* =========================================================
   DESKTOP 1200–1399
   ========================================================= */

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .ps-mainmenu__tree-link {
    padding-inline: 8px;
    font-size: 13px;
  }

  .t4l-megamenu__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 30px;
  }

  .ps-searchbar {
    width: 270px;
  }
}

/* =========================================================
   TABLET — tak jak Hummingbird:
   hamburger + duża wyszukiwarka + czarny pasek
   ========================================================= */

@media (max-width: 1199.98px) {
  .ps-mainmenu__desktop {
    display: none !important;
  }

  .ps-mainmenu--desktop {
    flex: 0 0 auto;
  }

  .ps-mainmenu__mobile-toggle {
    display: flex;
  }

  .header-bottom__row {
    align-items: center;
  }

  .t4l-desktop-search {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .ps-searchbar {
    width: min(100%, 430px);
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .header-categories .container {
    width: 100%;
    max-width: none;
    padding-inline: 14px;
  }

  .categories-nav {
    width: 100%;
    overflow: visible;
  }

  .categories-nav > ul {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0;
  }

  .categories-nav > ul > li {
    flex: 1 1 0;
    min-width: 0;
  }

  .categories-nav > ul > li > a {
    width: 100%;
    min-height: 42px;
    padding: 9px 8px;
    font-size: 12.5px;
    text-align: center;
  }
}

/* =========================================================
   TELEFON < 768
   ========================================================= */

@media (max-width: 767.98px) {
  body.admin-bar #header-main.header {
    top: 46px !important;
  }

  body.admin-bar .t4l-search-canvas {
    top: 46px;
  }

  .header-top-info {
    padding: 8px 0;
  }

  .header-top-info .container {
    max-width: none;
    padding-inline: 12px;
  }

  .top-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }

  .top-info-item {
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    line-height: 1.18;
    text-align: center;
    white-space: normal;
  }

  .t4l-material-icon {
    width: 21px;
    height: 21px;
  }

  .t4l-material-icon svg {
    width: 21px;
    height: 21px;
  }

  /* Drugi pasek nie występuje na telefonie w Hummingbird */
  .header-top {
    display: none;
  }

  .header-bottom__container {
    max-width: none;
    padding-inline: 12px;
  }

  .header-bottom__row {
    min-height: 72px;
    align-items: center !important;
    gap: 4px;
  }

  .header-bottom__logo {
    margin-right: auto;
  }

  .header-bottom__logo .logo {
    width: auto;
    max-width: 128px;
    max-height: 64px;
  }

  .ps-mainmenu--desktop {
    order: 2;
  }

  .t4l-desktop-search {
    display: none;
  }

  .t4l-mobile-header-actions {
    display: flex;
    order: 3;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  /* Czarny pasek znika — jego linki są w hamburgerze */
  .header-categories {
    display: none !important;
  }

  /* Newsletter */
  .ps-emailsubscription {
    padding: 16px 0;
  }

  .ps-emailsubscription .container {
    max-width: none;
    padding-inline: 15px;
  }

  .t4l-newsletter-row {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .t4l-newsletter-title {
    font-size: 20px;
  }

  .t4l-newsletter-fields {
    align-items: stretch;
  }

  .t4l-newsletter-input,
  .t4l-newsletter-submit {
    height: 42px;
  }

  /* Stopka — kolumny jako akordeon, informacja o sklepie zawsze otwarta */
  #footer .footer__main {
    padding: 22px 0 18px;
  }

  #footer .container {
    max-width: none;
    padding-inline: 20px;
  }

  #footer .footer__main-top {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #footer .footer-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  #footer .footer-block:last-child {
    border-bottom: 0;
  }

  #footer .footer-block__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    margin: 0;
    font-size: 16px;
  }

  #footer .footer-block__title--toggle {
    padding-right: 42px;
  }

  .t4l-footer-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .t4l-footer-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
  }

  .footer-block.is-open .t4l-footer-chevron {
    transform: rotate(225deg);
  }

  #footer .footer-block__content {
    display: none;
    padding: 0 0 17px;
  }

  #footer .footer-block.is-open .footer-block__content,
  #footer .footer-block__content--always-open {
    display: block;
  }

  #footer .ps-contactinfo.footer-block {
    padding-bottom: 8px;
  }

  #footer .ps-contactinfo .footer-block__title {
    min-height: auto;
    padding: 18px 0 14px;
  }

  #footer .footer-block__list a,
  #footer .ps-contactinfo a,
  #footer .ps-contactinfo__infos {
    font-size: 15px;
  }

  #footer .copyright {
    padding-top: 30px;
    font-size: 14px;
  }

  .t4l-back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 389.98px) {
  .top-info-grid {
    gap: 8px 8px;
  }

  .top-info-item {
    gap: 5px;
    font-size: 12px;
  }

  #mobileMenu .menu__list {
    padding-inline: 20px;
  }

  #mobileMenu .menu__link {
    font-size: 17px;
  }

  .header-bottom__logo .logo {
    max-width: 112px;
  }

  .t4l-mobile-search-button,
  .t4l-mobile-icon-link,
  .menu-toggle {
    width: 38px;
    height: 40px;
  }
}

/* =========================================================
   TOY4LOVE BLOG v1.3.1
   Strzałki głównego menu jak w PrestaShop:
   bez różowego kwadratu, tylko mały chevron obok tekstu.
   ========================================================= */

#header-main .ps-mainmenu__tree-dropdown-toggle,
#header-main button.ps-mainmenu__tree-dropdown-toggle {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 36px !important;
  min-height: 0 !important;

  margin: 0 7px 0 -5px !important;
  padding: 0 !important;

  color: #5f5f5f !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;

  appearance: none !important;
  -webkit-appearance: none !important;
}

#header-main .ps-mainmenu__tree-dropdown-toggle:hover,
#header-main .ps-mainmenu__tree-dropdown-toggle:focus,
#header-main .ps-mainmenu__tree-dropdown-toggle:focus-visible,
#header-main .ps-mainmenu__tree-dropdown-toggle:active {
  color: var(--t4l-primary) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  transform: none !important;
}

#header-main .ps-mainmenu__tree-dropdown-toggle::before {
  display: none !important;
  content: none !important;
}

#header-main .ps-mainmenu__tree-dropdown-toggle::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 7px !important;
  height: 7px !important;
  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  border-radius: 0 !important;

  background: transparent !important;

  transform: translate(-50%, -65%) rotate(45deg) !important;
  transform-origin: center !important;

  transition:
    transform 0.18s ease,
    color 0.18s ease !important;
}

/* Po otwarciu: różowa strzałka skierowana do góry. */
#header-main .ps-mainmenu__tree-item.is-mega-open
  > .ps-mainmenu__tree-item-wrapper
  .ps-mainmenu__tree-dropdown-toggle,
#header-main .ps-mainmenu__tree-item:hover
  > .ps-mainmenu__tree-item-wrapper
  .ps-mainmenu__tree-dropdown-toggle,
#header-main .ps-mainmenu__tree-item:focus-within
  > .ps-mainmenu__tree-item-wrapper
  .ps-mainmenu__tree-dropdown-toggle {
  color: var(--t4l-primary) !important;
  background: transparent !important;
}

#header-main .ps-mainmenu__tree-item.is-mega-open
  > .ps-mainmenu__tree-item-wrapper
  .ps-mainmenu__tree-dropdown-toggle::after {
  transform: translate(-50%, -30%) rotate(225deg) !important;
}

/* Astra czasem dokłada focus background do buttonów. */
#header-main .ps-mainmenu__tree-item-wrapper button:focus,
#header-main .ps-mainmenu__tree-item-wrapper button:hover,
#header-main .ps-mainmenu__tree-item-wrapper button:active {
  background-color: transparent !important;
  background-image: none !important;
}

