footer.patris-store-footer {
  width: 100%;
  max-width: none;
  margin: 3rem 0 0;
  padding: 0;
  border: 0;
  background: #211b22;
  color: #fff8fc;
  text-align: right;
}

.patris-store-footer__inner {
  width: min(100% - 32px, 1152px);
  margin-inline: auto;
  padding: 35px 0 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 24px;
  box-sizing: border-box;
}

.patris-store-footer h2 {
  color: #fff;
  font-size: 13px;
  margin: 0 0 12px;
}

.patris-store-footer a {
  color: #e4d9e0;
  text-decoration: none;
  font-size: 12px;
}

.patris-store-footer a:hover {
  color: #fff;
}

.patris-store-footer a:focus-visible,
.pf-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.patris-store-footer__brand {
  font-size: 26px !important;
  font-weight: 800;
  color: white !important;
}

.pf-brand p {
  color: #c9bbc4;
  font-size: 12px;
  line-height: 2;
}

.pf-links {
  display: grid;
  gap: 4px;
}

.pf-links a {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.pf-toggle {
  display: none;
}

.pf-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pf-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pf-social-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 12px;
}

.pf-social-icon svg {
  width: 25px;
  height: 25px;
}

.pf-social-icon.bale {
  background: #00a87e;
}

.pf-social-icon.rubika {
  background: linear-gradient(135deg,#35b6ba,#326ed0);
}

.patris-store-footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid #554653;
  padding-top: 15px;
  color: #bfb0b9;
  text-align: center;
  font-size: 11px;
  line-height: 1.9;
}

#shop-categories {
  scroll-margin-top: 6rem;
}

@media(max-width: 768px) {

  body:has(> footer.patris-store-footer + .patris-bottom-nav) {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  }

  footer.patris-store-footer {
    margin-top: 25px;
  }

  .patris-store-footer__inner {
    width: 100%;
    grid-template-columns: minmax(0,1fr);
    padding: 18px 16px;
    gap: 0;
  }

  .pf-brand {
    text-align: center;
    padding-bottom: 12px;
  }

  .pf-brand p {
    margin: 4px 0;
  }

  .pf-group {
    border-top: 1px solid #493e48;
  }

  .pf-desktop-title {
    display: none;
  }

  .pf-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 2px;
    border: 0;
    background: transparent;
    color: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .pf-toggle span {
    font-size: 19px;
    color: #c9b8aa;
  }

  .pf-links {
    display: none;
    padding: 0 10px 10px;
  }

  .pf-links.open {
    display: grid;
  }

  .pf-links a {
    min-height: 38px;
  }

  .pf-social {
    border-top: 1px solid #493e48;
    padding: 15px 0;
    text-align: center;
  }

  .pf-social-links {
    justify-content: center;
  }

  .pf-social-icon {
    width: 38px;
    height: 38px;
  }

  .patris-store-footer__bottom {
    font-size: 10px;
    padding-top: 12px;
  }
}

/* Footer theme correction */
footer.patris-store-footer {
    background: #F6F9FB !important;
    color: #3A2119 !important;
    border-top: 1px solid #E8E0D4 !important;
}

.patris-store-footer .patris-store-footer__brand,
.patris-store-footer .pf-toggle,
.patris-store-footer h2,
.patris-store-footer a,
.patris-store-footer p {
    color: #3A2119 !important;
}

.patris-store-footer .pf-toggle span {
    color: #957662 !important;
}

.patris-store-footer .pf-group,
.patris-store-footer .pf-social,
.patris-store-footer .patris-store-footer__bottom {
    border-color: #E8E0D4 !important;
}

.patris-store-footer .patris-store-footer__bottom {
    color: #957662 !important;
}

.patris-store-footer .pf-social-icon {
    color: #fff !important;
}
