/* UKRYCIE NATIVE WOO VARIATIONS */
.fufu-pdp .variations {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  display: none;
}

.fufu-pdp {
  width: 100%;
}

.fufu-pdp__top {
  gap: var(--space-page-x);
  padding: 0 var(--space-page-x) 0 0;
  display: flex;
}

.fufu-pdp__summary {
  position: relative;
  padding: var(--space-page-x);
  padding-top: 2rem !important;
  max-width: 512px;
  width: 100%;
}

.fufu-pdp__personalize-button {
  width: 100%;
  margin-bottom: 0.5rem;
  background: var(--c-black-02);
  color: var(--c-turquoise-03);
}

.fufu-pdp__personalize-button:hover {
  background: var(--c-black-02);
}

.fufu-pdp__config {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fufu-pdp__option {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fufu-pdp__option-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.fufu-pdp__option-btn {
  padding: 1rem;
}

.fufu-pdp__option[data-option="pa_kierunek"] .fufu-pdp__option-values,
.fufu-pdp__direction-preview {
  display: flex;
  gap: 0.5rem;
}

.fufu-pdp__option[data-option="pa_kierunek"] .fufu-pdp__option-btn {
  width: 120px;
  height: 120px;
}

.fufu-pdp__option[data-option="pa_kierunek"] .fufu-pdp__option-btn::before {
  content: "";
  flex-shrink: 0;
  width: 4rem;
  height: 3rem;
  background: var(--c-black-08);
}

.fufu-pdp__direction-item::before {
  content: "";
  display: block;
  width: 2rem;
  height: 100%;
  background: var(--c-black-08);
}

.fufu-pdp__option[data-option="pa_kierunek"] .fufu-pdp__option-btn::before,
.fufu-pdp__direction-item::before {
  -webkit-mask: url("https://fufusofa.pokazowawitryna.pl/wp-content/uploads/kierunek-ustawienia.svg") center / contain no-repeat;
  mask: url("https://fufusofa.pokazowawitryna.pl/wp-content/uploads/kierunek-ustawienia.svg") center / contain no-repeat;
}

.fufu-pdp__option[data-option="pa_kierunek"] .fufu-pdp__option-btn[data-value="prawy"]::before,
.fufu-pdp__direction-item[data-summary-direction="prawy"]::before {
  transform: scaleX(-1);
}

.fufu-pdp__direction-item {
  width: 3.375rem;
  height: 3.375rem;
  border: 1px solid transparent;
  background: var(--c-turquoise-additional-01);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fufu-pdp__direction-item:hover {
  border: 1px solid var(--c-turquoise-03);
  background: var(--c-turquoise-additional-01);
}

.fufu-pdp__direction-item.is-active {
  border: 1px solid var(--c-turquoise-03);
  background: transparent;
}

.fufu-pdp__summary-selected {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fufu-product-config {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 350ms ease,
    visibility 350ms ease;
}

.fufu-product-config.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fufu-product-config__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.fufu-product-config__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 48.5rem);
  height: 100%;
  background: var(--c-black-01);
  color: var(--c-turquoise-03);
  transform: translateX(100%);
  transition: transform 450ms cubic-bezier(0.69, 0, 0.47, 1);
  display: flex;
  flex-direction: column;
}

.fufu-product-config.is-open .fufu-product-config__panel {
  transform: translateX(0);
}

.fufu-product-config__head,
.fufu-product-config__footer {
  padding: 1.5rem var(--space-page-x) 2rem var(--space-page-x);
  border-bottom: 1px solid var(--c-black-03);
}

.fufu-product-config__footer .fufu-button-green {
  width: 100%;
}

.fufu-product-config__footer {
  border-top: 1px solid var(--c-black-03);
  border-bottom: 0;
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

.fufu-product-config__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2.625rem var(--space-page-x) 0 var(--space-page-x);
  min-height: 148px;
}

.fufu-product-config__close {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
  cursor: pointer;
}

.fufu-product-config__close:hover {
  background: transparent;
  color: inherit;
}

.fufu-product-config__body {
  padding: var(--space-page-x);
  overflow-y: auto;
}

body.fufu-product-config-open {
  overflow: hidden;
}

.fufu-pdp__summary-inner {
  position: sticky;
  top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fufu-pdp__summary-inner .product_title {
  margin: 0 0 1rem;
  color: var(--c-turquoise-03);
}

.fufu-pdp__summary-top {
  height: 135px;
  border-bottom: solid 1px var(--c-turquoise-additional-03);
}

.fufu-pdp__head {
  display: flex;
  justify-content: space-between;
}

.fufu-pdp__summary-mid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fufu-pdp__price {
  margin-bottom: 1.5rem;
}

.fufu-pdp__summary-selected {
  color: var(--c-turquoise-03);
}

.fufu-pdp__fabric-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fufu-pdp__fabric-label {
  color: var(--c-turquoise-03);
}

.fufu-pdp__fabric-list {
  display: flex;
  gap: 0.5rem;
}

.fufu-pdp__fabric-item,
.fufu-pdp__fabric-more {
  width: 3.375rem;
  height: 3.375rem;
  border: 1px solid transparent;
  background: var(--c-beige-02);
  cursor: pointer;
  padding: 0;
}

.fufu-pdp__fabric-item.is-active,
.fufu-pdp__fabric-more:hover {
  border-color: var(--c-turquoise-03);
}

.fufu-pdp__fabric-more {
  border: 1px solid var(--c-turquoise-03);
  color: var(--c-turquoise-03);
  background: transparent;
}

.fufu-pdp__summary-inner form.cart .quantity {
  position: relative;
  width: 5.5rem;
  overflow: visible;
}

.fufu-pdp__summary-inner form.cart .qty {
  width: 5.25rem;
  height: 3.25rem;
  border: 1px solid var(--c-turquoise-additional-03);
  text-align: center;
  background-color: transparent;
  box-shadow: none !important;
  padding: 1rem !important;
  color: var(--c-turquoise-03) !important;
  appearance: textfield;
  /* width: 100%; */
  /* padding-right: 2.5rem !important; */
  text-align: center;
}

/* .fufu-pdp__summary-inner form.cart .quantity::after {
  right: 1.25rem;
  z-index: 2;
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  background-color: var(--c-turquoise-03);
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.33301 6.66669L7.99967 9.33335L10.6663 6.66669' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.33301 6.66669L7.99967 9.33335L10.6663 6.66669' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
} */

/* .fufu-pdp__summary-inner form.cart .qty::-webkit-outer-spin-button,
.fufu-pdp__summary-inner form.cart .qty::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
} */

.single_variation_wrap {
  width: stretch;
}

.woocommerce-variation-add-to-cart.variations_button {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.fufu-pdp__summary-inner form.cart .single_add_to_cart_button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2rem;
  border: none;
  font-family: var(--font-family-body);
  font-size: var(--font-size-13);
  line-height: var(--line-height-110);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  background-color: var(--c-turquoise-03);
  color: var(--c-black-01);
}

.fufu-pdp__summary-inner form.cart .single_add_to_cart_button:hover {
  background-color: var(--c-turquoise-04);
}

.fufu-pdp .woocommerce-variation-price {
  display: none;
}

.fufu-pdp__price-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 1.1rem;
}

.fufu-pdp__price-main {
  color: var(--c-turquoise-03);
  font-size: 1.4rem;
  line-height: 1.1rem;
  font-weight: var(--font-weight-medium);
}

.fufu-pdp__price-wrap.has-sale .fufu-pdp__price-main {
  color: var(--c-red-01);
}

.fufu-pdp__price-regular {
  color: var(--c-black-05);
  font-size: var(--font-size-13);
  line-height: 1;
  font-weight: var(--font-weight-regular);
  text-decoration: line-through;
  opacity: 1;
}

.fufu-pdp__price .price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fufu-discount-badge {
  display: inline-flex;
  align-items: center;
  height: 1.1rem;
  padding: 0 0.25rem;
  background: var(--c-additional-burnt-coral);
  color: var(--c-black-01);
  font-size: var(--font-size-12);
  line-height: 1;
  font-weight: var(--font-weight-regular);
}

.fufu-discount-badge[hidden] {
  display: none !important;
}

.fufu-pdp__omnibus {
  margin-top: 1rem;
  color: var(--c-turquoise-03);
  position: absolute;
}

@media (max-width: 1024px) {
  .fufu-pdp__top {
    display: block;
    padding: 0;
  }

  .fufu-pdp__summary-inner {
    position: static;
  }

  .fufu-pdp__direction-item {
    width: 5rem;
    height: 5rem;
  }

  .fufu-pdp__direction-item::before {
    width: 3rem;
  }
}

/* GALLERY */
section.fufu-pdp__gallery {
  padding-top: 1.5rem;
}

.fufu-pdp-gallery__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.fufu-pdp-gallery__item {
  grid-column: span 3;
  margin: 0;
  aspect-ratio: 870/1080;
  background: var(--c-black-02);
  overflow: hidden;
}

.fufu-pdp-gallery__item:nth-child(5),
.fufu-pdp-gallery__item:nth-child(6),
.fufu-pdp-gallery__item:nth-child(7) {
  grid-column: span 2;
}

.fufu-pdp-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fufu-pdp-gallery__pagination {
  display: none;
}

@media (max-width: 1024px) {
  section.fufu-pdp__gallery {
    padding-top: 0;
  }

  .fufu-pdp-gallery {
    position: relative;
    background: var(--c-black-02);
  }

  .fufu-pdp-gallery__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .fufu-pdp-gallery__track::-webkit-scrollbar {
    display: none;
  }

  .fufu-pdp-gallery__item {
    flex: 0 0 100%;
    grid-column: auto;
    aspect-ratio: auto;
    min-height: unset;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fufu-pdp-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .fufu-pdp-gallery__pagination {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.625rem;
    z-index: 2;
  }

  .fufu-pdp-gallery__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 1px solid var(--c-turquoise-additional-05);
    background: transparent;
  }

  .fufu-pdp-gallery__dot:hover {
    background: transparent;
    border: 1px solid var(--c-turquoise-additional-05);
  }

  .fufu-pdp-gallery__dot.is-active {
    background: var(--c-turquoise-additional-05);
  }
}

/* TABY */
.fufu-pdp-tabs {
  margin-top: 4.25rem;
  padding: 0 var(--space-page-x);
}

.fufu-pdp-tabs__nav {
  display: flex;
  position: relative;
  box-shadow: inset 0 -1px 0 var(--c-black-03);
  margin-bottom: 4rem;
}

.fufu-pdp-tabs__nav {
  scrollbar-width: none; /* Firefox */
}

.fufu-pdp-tabs__nav::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}

.fufu-pdp-tabs__nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-black-03);
}

.fufu-pdp-tabs__indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--c-turquoise-03);
  left: 0;
  width: 0;
  transition:
    transform 450ms cubic-bezier(0.65, 0, 0.35, 1),
    width 450ms cubic-bezier(0.65, 0, 0.35, 1);
}

.fufu-pdp-tabs__indicator {
  transform: translateX(0);
}

.fufu-pdp-tabs__nav-item {
  padding: 1.25rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--c-black-04);
  cursor: pointer;
  font-size: var(--font-size-13);
  line-height: var(--line-height-135);
  font-weight: var(--font-weight-medium);
  white-space: nowrap !important;
}

.fufu-pdp-tabs__nav-item:hover {
  background: transparent;
  color: var(--c-turquoise-03);
  border-bottom: 1px solid transparent;
}

.fufu-pdp-tabs__nav-item.is-active {
  color: var(--c-turquoise-03);
  border-bottom: 1px solid var(--c-turquoise-03);
}

.fufu-pdp-tabs__panel {
  display: none;
}

.fufu-pdp-tabs__panel.is-active {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  align-items: start;
}

.fufu-pdp-tabs__text {
  color: var(--c-turquoise-03);
  max-width: 540px;
  width: 100%;
}

.fufu-pdp-tabs__content {
  min-height: 540px;
}

.fufu-pdp-tabs__text h2 {
  margin: 0 0 2rem;
}

.fufu-pdp-tabs__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .fufu-pdp-tabs__panel.is-active {
    gap: 1.5rem;
    flex-direction: column;
  }

  .fufu-pdp-tabs__nav {
    margin-bottom: 3.5rem;
    overflow: scroll;
    margin-right: -1.5rem;
  }

  .fufu-pdp-tabs {
    margin-top: 2rem;
  }

  .fufu-pdp-tabs__text h2 {
    margin: 0 0 1.5rem;
  }
}
