/*
 * Frosted homepage redesign.
 * Controlled by FROSTED_DESIGN in public_html/config.php.
 */

body:has(#common-home) #container {
  position: relative;
  display: flex;
  min-height: 100vh;
  margin-bottom: 0;
  flex-direction: column;
}

body:has(#common-home) #container > main {
  flex: 1 0 auto;
}

body:has(#common-home) #container > footer {
  position: relative;
  bottom: auto;
  flex: 0 0 auto;
  margin-top: 2rem;
}

#common-home {
  --home-accent: #fa7305;
  --home-accent-dark: #d95d00;
  --home-ink: #272320;
  --home-muted: #746c66;
  --home-glass: rgba(255, 255, 255, 0.62);
  --home-glass-strong: rgba(255, 255, 255, 0.8);
  --home-border: rgba(255, 255, 255, 0.82);
  position: relative;
  max-width: 1480px;
  padding-right: 0;
  padding-left: 0;
  padding-top: var(--glass-section-gap, 1.25rem);
  padding-bottom: 3rem;
  isolation: isolate;
}

#common-home > .row {
  margin-right: 0;
  margin-left: 0;
}

#common-home > .row > .col-12 {
  padding: 0;
}

#common-home .tabs-container {
  position: relative;
}

#common-home .tabs-wrapper {
  margin-bottom: var(--glass-section-gap, 1.25rem);
  padding: 1rem;
  border: 1px solid rgba(84, 67, 55, 0.18);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1.25rem 3.5rem rgba(78, 55, 38, 0.11);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

#common-home #myTab {
  gap: 0.45rem;
  padding: 0.15rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  scrollbar-color: rgba(250, 115, 5, 0.38) transparent;
}

#common-home #myTab::-webkit-scrollbar {
  height: 5px;
}

#common-home #myTab::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(250, 115, 5, 0.38);
}

#common-home #myTab .nav-item {
  border: 0;
  border-radius: 1rem;
  background: transparent;
}

#common-home #myTab .nav-link {
  display: flex;
  min-width: 8rem;
  min-height: 6.3rem;
  padding: 0.65rem 0.8rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.7rem;
  border: 1px solid rgba(250, 115, 5, 0.24);
  border-radius: 1rem;
  color: #514a45;
  background: linear-gradient(145deg, rgba(255, 252, 249, 0.84), rgba(255, 231, 210, 0.62));
  box-shadow: inset 0.32rem 0 0 rgba(226, 91, 0, 0), 0 0.9rem 2.4rem rgba(78, 55, 38, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

#common-home #myTab .nav-link img {
  width: 4.25rem;
  height: 3.25rem;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.28rem 0.4rem rgba(65, 47, 33, 0.14));
  transition: transform 0.2s ease;
}

#common-home #myTab .manufacturer-name {
  display: inline-flex;
  min-height: 1.8rem;
  padding: 0.28rem 0.68rem 0.48rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 115, 5, 0.2);
  border-radius: 0.72rem;
  color: var(--home-ink);
  background: rgba(250, 115, 5, 0.1);
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#common-home #myTab .nav-link:hover {
  color: var(--home-accent-dark);
  border-color: rgba(250, 115, 5, 0.38);
  background: linear-gradient(145deg, rgba(255, 248, 242, 0.96), rgba(255, 207, 164, 0.72));
  box-shadow: inset 0.32rem 0 0 rgba(226, 91, 0, 0.9), 0 1.15rem 3rem rgba(78, 55, 38, 0.14);
  transform: translateY(-0.12rem);
}

#common-home #myTab .nav-link:hover img {
  transform: scale(1.06);
}

#common-home #myTab .nav-link:hover .manufacturer-name {
  color: var(--home-accent-dark);
  border-color: rgba(250, 115, 5, 0.34);
  background: rgba(250, 115, 5, 0.16);
}

#common-home #myTab .nav-link.active {
  color: #fff;
  border-color: rgba(183, 76, 0, 0.58);
  background: linear-gradient(145deg, #ff9948, var(--home-accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 0.8rem 1.7rem rgba(250, 115, 5, 0.25);
}

#common-home #myTab .nav-link.active:hover {
  color: #fff;
  border-color: rgba(166, 67, 0, 0.68);
  background: linear-gradient(145deg, #ff8e37, #e96808);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 1rem 2.2rem rgba(217, 93, 0, 0.3);
}

#common-home #myTab .nav-link.active img {
  padding: 0.18rem;
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.25rem 0.55rem rgba(92, 44, 7, 0.16);
  filter: drop-shadow(0 0.18rem 0.25rem rgba(92, 44, 7, 0.12));
}

#common-home #myTab .nav-link.active .manufacturer-name,
#common-home #myTab .nav-link.active:hover .manufacturer-name {
  color: #8f3d05;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.25rem 0.55rem rgba(92, 44, 7, 0.14);
}

#common-home .scroll-arrow {
  width: 4rem;
  color: var(--home-accent);
  font-size: 2rem;
}

#common-home .scroll-arrow.left {
  border-radius: 1rem 0 0 1rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

#common-home .scroll-arrow.right {
  border-radius: 0 1rem 1rem 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

#common-home .home-wrapper {
  padding: 1rem;
  border: 1px solid rgba(84, 67, 55, 0.14);
  border-radius: 1.75rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 249, 244, 0.56));
  box-shadow: 0 1.6rem 4.5rem rgba(78, 55, 38, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

#common-home #content {
  padding: 0;
}

#common-home #product-list,
#common-home #product-list > .col-md-12 {
  margin: 0;
  padding: 0;
}

#common-home .accordion-item {
  overflow: visible;
  margin-bottom: 1rem;
  border: 1px solid rgba(250, 115, 5, 0.24);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(255, 252, 249, 0.84), rgba(255, 231, 210, 0.62));
  box-shadow: inset 0.32rem 0 0 rgba(250, 115, 5, 0.72), 0 0.9rem 2.4rem rgba(78, 55, 38, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

#common-home .accordion-item:hover,
#common-home .accordion-item:has(.product-card:not(.collapsed)) {
  border-color: rgba(250, 115, 5, 0.38);
  background: linear-gradient(145deg, rgba(255, 248, 242, 0.96), rgba(255, 207, 164, 0.72));
  box-shadow: inset 0.38rem 0 0 rgba(226, 91, 0, 0.9), 0 1.15rem 3rem rgba(78, 55, 38, 0.14);
}

#common-home .accordion-header {
  border-radius: inherit;
}

#common-home .product-card {
  height: 11rem;
  min-height: 11rem;
  margin: 0;
  padding: clamp(0.9rem, 2vw, 1.25rem);
  align-items: center;
  align-content: center;
  border: 0;
  border-radius: 1.35rem 1.35rem 0 0;
  outline: 0;
  color: var(--home-ink);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.22s ease;
}

#common-home .product-card.collapsed {
  border-radius: 1.35rem;
  outline: 0;
  background: transparent;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12' fill='%23fff' stroke='%23fa7305' stroke-width='2'/%3E%3Cpath d='m8 11 6 6 6-6' fill='none' stroke='%23fa7305' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 14 14, pointer;
}

#common-home .product-card:hover,
#common-home .product-card:not(.collapsed) {
  background: transparent;
  box-shadow: none;
  transform: translateY(-0.12rem);
}

#common-home .product-card:not(.collapsed) {
  transform: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12' fill='%23fff' stroke='%23fa7305' stroke-width='2'/%3E%3Cpath d='m8 17 6-6 6 6' fill='none' stroke='%23fa7305' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 14 14, pointer;
}

#common-home .product-card__model,
#common-home .product-card__belka,
#common-home .product-card__cena {
  color: var(--home-ink);
}

#common-home .product-card__nazwa-auto {
  display: inline-flex;
  min-height: 2.4rem;
  margin-top: 0.6rem;
  padding: 0 0.68rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 115, 5, 0.2);
  border-radius: 0.72rem;
  color: var(--home-ink);
  background: rgba(250, 115, 5, 0.1);
  font-weight: 750;
  line-height: normal;
}

#common-home .product-card__nazwa-auto > span {
  text-box: trim-both cap alphabetic;
}

#common-home .product-card__photo-auto.is-placeholder {
  height: 5rem;
}

#common-home .product-card__model.is-image-empty .product-card__photo-auto {
  display: none;
}

#common-home .product-card__model.is-image-empty .product-card__nazwa-auto {
  margin-top: 0;
}

#common-home .product-card__photo-auto:not(.is-placeholder) {
  position: relative;
  top: 0.45rem;
}

#common-home .product-card__photo-auto img,
#common-home .product-card__belka-photo img {
  filter: drop-shadow(0 0.55rem 0.6rem rgba(65, 47, 33, 0.14));
}

#common-home .product-card__cena {
  color: var(--home-accent-dark);
  font-weight: 700;
}

#common-home .accordion-collapse {
  overflow: hidden;
  border: 0;
  border-radius: 0 0 1.35rem 1.35rem !important;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

#common-home .accordion-collapse.show {
  overflow: visible;
}

#common-home .accordion-body {
  padding: clamp(0.8rem, 2vw, 1.3rem);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12' fill='%23fff' stroke='%23fa7305' stroke-width='2'/%3E%3Cpath d='m8 17 6-6 6 6' fill='none' stroke='%23fa7305' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 14 14, pointer;
}

#common-home .accordion-body > .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

#common-home .accordion-body > .row > [class*="col-"] {
  display: flex;
}

#common-home .belki-miniatury__card {
  width: 100%;
  height: calc(100% - 1rem);
  margin-bottom: 1rem;
}

#common-home .store-product-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

/* The centered information card is content-sized, not an equal-height product tile. */
#common-home .belki-miniatury__card.mb-0 {
  height: auto;
  min-height: max-content;
  align-self: flex-start;
  overflow: visible;
}

#common-home .belki-miniatury__card.mb-0 .belki-miniatury__big-link {
  height: auto;
  cursor: default;
}

#common-home .home-model-contact-card {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#common-home .product-description-contact {
  width: 100%;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.15rem;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0, rgba(250, 115, 5, 0.25), transparent 34%),
    linear-gradient(145deg, #363230, #242221);
  box-shadow: 0 1rem 2.4rem rgba(37, 31, 27, 0.18);
  text-align: center;
}

#common-home .product-description-contact__heading h3 {
  margin: 0;
  color: #ff8a32;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
}

#common-home .product-description-contact__heading p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 650;
}

#common-home .product-description-contact__actions {
  display: grid;
  margin-top: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

#common-home .product-description-contact__button {
  display: flex;
  min-width: 0;
  min-height: 4.5rem;
  padding: 0.75rem 0.9rem;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.9rem;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0.65rem 1.3rem rgba(0, 0, 0, 0.14);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

#common-home .product-description-contact__button:hover,
#common-home .product-description-contact__button:focus-visible {
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0.9rem 1.7rem rgba(0, 0, 0, 0.2);
  filter: brightness(1.06);
  text-decoration: none;
  transform: translateY(-0.12rem);
}

#common-home .product-description-contact__button:focus-visible {
  outline: 0.18rem solid rgba(255, 255, 255, 0.72);
  outline-offset: 0.15rem;
}

#common-home .product-description-contact__button--phone {
  background: linear-gradient(135deg, #ff8f39, #e65f00);
}

#common-home .product-description-contact__button--whatsapp {
  background: linear-gradient(135deg, #31c96b, #168d43);
}

#common-home .product-description-contact__button--form {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
}

#common-home .product-description-contact__button i {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.2rem;
}

#common-home .product-description-contact__button span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

#common-home .product-description-contact__button small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

#common-home .product-description-contact__button strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

#common-home .belki-miniatury__card.mb-0 [style*="background: #feedd6"] {
  border-radius: 1.25rem 1.25rem 0 0;
}

#common-home .belki-miniatury__card.mb-0 .belki-miniatury__add-to-cart {
  border-radius: 0 0 1.25rem 1.25rem;
}

#common-home .accordion-body > .row:last-child {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

#common-home .belki-miniatury__big-link {
  display: flex;
  height: auto;
  flex: 1 1 auto;
  flex-direction: column;
  text-decoration: none;
}

#common-home .belki-miniatury__big-link:hover,
#common-home .belki-miniatury__big-link:focus,
#common-home .belki-miniatury__big-link:hover .belki-miniatury__link,
#common-home .belki-miniatury__big-link:focus .belki-miniatury__link {
  text-decoration: none;
}

#common-home .belki-miniatury__add-to-cart :is(a, button),
#common-home .belki-miniatury__add-to-cart :is(a, button):hover,
#common-home .belki-miniatury__add-to-cart :is(a, button):focus,
#common-home .belki-miniatury__add-to-cart .add-to-cart-text,
#common-home .belki-miniatury__add-to-cart :is(a, button):hover .add-to-cart-text,
#common-home .belki-miniatury__add-to-cart :is(a, button):focus .add-to-cart-text {
  border-left: 0;
  text-decoration: none;
}

#common-home [style*="background: #feedd6"] {
  border-bottom: 1px solid rgba(250, 115, 5, 0.12);
  background: rgba(255, 245, 235, 0.64) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#common-home .text-white {
  color: var(--home-muted) !important;
}

@media (max-width: 991.98px) {
  #common-home #myTab .nav-link {
    min-width: 6.6rem;
  }

  #common-home .product-card {
    height: 11rem;
    min-height: 11rem;
  }
}

@media (max-width: 767.98px) {
  #common-home .product-description-contact__actions {
    grid-template-columns: 1fr;
  }

  #common-home {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
  }

  #common-home .tabs-wrapper {
    margin-bottom: var(--glass-section-gap, 1.25rem);
    padding: 1rem;
    border-radius: 1.15rem;
  }

  #common-home #myTab {
  gap: 0.7rem;
  }

  #common-home #myTab .nav-link {
    min-width: 6.5rem;
    min-height: 5.7rem;
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  #common-home #myTab .nav-link img {
    width: 3.25rem;
    height: 2.6rem;
  }

  #common-home .home-wrapper {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  #common-home .product-card {
    display: grid;
    height: auto;
    min-height: 0;
    padding: 1rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    border-radius: 1rem 1rem 0 0;
  }

  #common-home .product-card > .col-md-4 {
    width: auto;
    min-width: 0;
    padding: 0;
  }

  #common-home .product-card > .col-md-4:nth-of-type(1) {
    grid-area: auto;
  }

  #common-home .product-card > .col-md-4:nth-of-type(2) {
    grid-area: auto;
  }

  #common-home .product-card > .col-md-4:nth-of-type(3) {
    grid-area: auto;
  }

  #common-home .product-card > .col-md-4:has(.product-card__belka-photo.is-placeholder) {
    display: none;
  }

  #common-home .product-card.collapsed {
    border-radius: 1rem;
  }

  #common-home .product-card__model,
  #common-home .product-card__belka,
  #common-home .product-card__cena {
    min-width: 0;
    font-size: 0.95rem;
  }

  #common-home .product-card__photo-auto:not(.is-placeholder) {
    top: 0;
  }

  #common-home .product-card__photo-auto img {
    max-height: 3.8rem;
    margin-bottom: 0.25rem;
  }

  #common-home .product-card__nazwa-auto {
    min-height: 2.2rem;
    margin-top: 0.3rem;
    text-align: center;
  }

  #common-home .product-card__belka-photo {
    height: 4.5rem;
  }

  #common-home .product-card__cena {
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  #common-home .accordion-collapse {
    border-radius: 0 0 1rem 1rem !important;
  }

  #common-home .accordion-body {
    padding: 1.25rem 0.75rem 1rem;
    border-top: 1px solid rgba(250, 115, 5, 0.2);
    background: rgba(255, 255, 255, 0.3);
  }

  #common-home .accordion-body > .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 1rem;
  }

  #common-home .accordion-body .belki-miniatury__card {
    height: auto;
    margin-bottom: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  #common-home *,
  #common-home *::before,
  #common-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
