.kb-single-product {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 96px;
}

.kb-pdp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 56px;
  align-items: start;
}

.kb-pdp__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
}

.kb-pdp__badge {
  position: absolute;
  top: 14px;
  left: 98px;
  z-index: 3;
  padding: 7px 12px;
  background: #e86f2a;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.kb-pdp__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kb-pdp__thumb {
  width: 82px;
  height: 108px;
  padding: 0;
  border: 1px solid #eee;
  background: #f6f6f6;
  cursor: pointer;
  overflow: hidden;
}

.kb-pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-pdp__main-image {
  background: #f6f6f6;
  overflow: hidden;
}

.kb-pdp__image {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  display: block;
}

.kb-pdp__summary {
  position: sticky;
  top: 32px;
}

.kb-pdp__title {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
}

.kb-pdp__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: #777;
  font-size: 13px;
}

.kb-pdp__price {
  margin-bottom: 24px;
  font-size: 26px;
  font-weight: 600;
  color: #FF6C0F;
}

.kb-pdp__price del {
  color: #999;
  font-size: 20px;
  font-weight: 400;
  margin-right: 10px;
}

.kb-pdp__price ins {
  text-decoration: none;
}

.kb-pdp__variation {
  margin-bottom: 16px;
}

.kb-pdp__variation-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.kb-pdp__variation label {
  font-size: 13px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.kb-pdp__variation select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font-size: 15px;
}

.kb-size-open {
  border: 0;
  padding: 0;
  background: transparent;
  color: #777;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.reset_variations {
  display: inline-block;
  margin: 2px 0 18px;
  color: #999;
  font-size: 13px;
}

.single_variation_wrap .woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-availability,
.single_variation_wrap .quantity {
  display: none;
}

.single_add_to_cart_button {
  width: 100%;
  height: 54px;
  border: 0;
  background: #e86f2a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.kb-pdp__accordions {
  margin-top: 28px;
  border-top: 1px solid #eee;
}

.kb-pdp__accordions details {
  border-bottom: 1px solid #eee;
}

.kb-pdp__accordions summary {
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.kb-pdp__accordions summary::-webkit-details-marker {
  display: none;
}

.kb-pdp__accordions details div {
  padding: 0 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.kb-pdp__help {
  margin-top: 28px;
  padding: 24px;
  background: #f7f7f7;
  text-align: center;
}

.kb-pdp__help-title {
  margin-bottom: 12px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.kb-pdp__phone {
  display: block;
  margin-bottom: 10px;
  color: #111;
  font-size: 24px;
  text-decoration: none;
}

.kb-pdp__help-note,
.kb-pdp__help-sku {
  margin-bottom: 10px;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}

.kb-pdp__messengers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.kb-pdp__messengers a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid #ddd;
  color: #111;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.kb-size-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}

.kb-size-modal.is-open {
  display: block;
}

.kb-size-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.kb-size-modal__content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
  margin: 40px auto;
  padding: 32px;
  background: #fff;
}

.kb-size-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 34px;
  color: #999;
}

.kb-sticky-buy {
  display: none;
}

@media (max-width: 767px) {
  .kb-single-product {
    padding: 0 0 96px;
    overflow-x: hidden;
  }

  .kb-pdp__layout {
    display: block;
  }

  .kb-pdp__gallery {
    display: block;
    width: 100%;
  }

  .kb-pdp__badge {
    top: 12px;
    left: 12px;
  }

  .kb-pdp__main-image {
    width: 100%;
  }

  .kb-pdp__image {
    width: 100%;
    max-height: none;
    object-fit: contain;
  }

  .kb-pdp__thumbs {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 8px 18px 0;
    overflow-x: auto;
  }

  .kb-pdp__thumb {
    flex: 0 0 66px;
    width: 66px;
    height: 86px;
  }

  .kb-pdp__summary {
    position: static;
    padding: 0 18px;
  }

  .kb-pdp__title {
    margin: 26px 0 14px;
    font-size: 34px;
    line-height: 1.04;
  }

  .kb-pdp__meta {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .kb-pdp__price {
    margin-bottom: 22px;
    font-size: 26px;
  }

  .kb-pdp__variation {
    margin-bottom: 14px;
  }

  .kb-pdp__variation select {
    height: 50px;
    font-size: 15px;
    border-radius: 0;
  }

  .single_add_to_cart_button {
    height: 56px;
    margin-top: 8px;
  }

  .kb-pdp__help {
    padding: 22px 18px;
  }

  .kb-pdp__messengers {
    grid-template-columns: 1fr;
  }

  .kb-size-modal__content {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 28px 18px;
    box-sizing: border-box;
  }

  .kb-sticky-buy {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 99990;
    display: block;
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }

  .kb-sticky-buy.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .kb-sticky-buy button {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 14px;
    background: #e86f2a;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
}

/* PDP fixes */

.kb-pdp__thumb.is-active {
  border-color: #111;
}

.single_add_to_cart_button,
.kb-sticky-buy button {
  background: #111 !important;
  color: #fff !important;
}

.kb-pdp__cart .quantity,
.kb-pdp__cart input.qty {
  display: none !important;
}

.kb-pdp__accordions summary {
  position: relative;
  padding-right: 28px;
}

.kb-pdp__accordions summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}

.kb-pdp__accordions details[open] summary::after {
  content: '−';
}

@media (min-width: 768px) {
  .kb-pdp__gallery {
    align-items: start;
  }

  .kb-pdp__thumbs {
    max-height: 720px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .kb-pdp__main-image {
    min-height: 0;
  }

  .kb-pdp__image {
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
  }

  .kb-pdp__variation select {
    height: 44px;
  }
}

@media (max-width: 767px) {
  .kb-pdp__gallery {
    display: flex;
    flex-direction: column;
  }

  .kb-pdp__main-image {
    order: 1;
    width: 100%;
    background: #f6f6f6;
  }

  .kb-pdp__thumbs {
    order: 2;
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: 100%;
    padding: 8px 18px 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .kb-pdp__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 82px;
  }

  .kb-pdp__badge {
    top: 12px;
    left: 12px;
    z-index: 5;
  }

  .kb-pdp__image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .kb-pdp__variation {
    margin-bottom: 12px;
  }

  .kb-pdp__variation-head {
    margin-bottom: 6px;
  }

  .kb-pdp__variation select {
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
  }

  .kb-sticky-buy {
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .kb-sticky-buy button {
    height: 58px;
    border-radius: 12px;
  }
}

.kb-pdp__breadcrumbs {
  margin-bottom: 22px;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.kb-pdp__breadcrumbs a {
  color: #888;
  text-decoration: none;
}

.kb-pdp__main-image {
  position: relative;
}

.kb-pdp__gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  color: #111;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.kb-pdp__gallery-arrow--prev {
  left: 14px;
}

.kb-pdp__gallery-arrow--next {
  right: 14px;
}

@media (min-width: 768px) {
  .kb-pdp__gallery {
    position: sticky;
    top: 32px;
    align-self: start;
  }

  .kb-pdp__summary {
    position: static;
  }

  .kb-pdp__thumbs {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .kb-pdp__main-image {
    max-height: calc(100vh - 90px);
    overflow: visible;
    background: #f6f6f6;
  }

  .kb-pdp__image {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 90px);
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .kb-pdp__breadcrumbs {
    display: block;
    padding: 0 18px;
    margin: 18px 0 14px;
    font-size: 11px;
    line-height: 1.4;
    color: #888;
    white-space: nowrap;
    overflow-x: auto;
  }
}

.kb-pdp__main-image {
    position: relative;
    overflow: hidden;
}

.kb-pdp__gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
    z-index: 30;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .2s ease;
}

.kb-pdp__gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.kb-pdp__gallery-arrow--prev {
    left: 18px;
}

.kb-pdp__gallery-arrow--next {
    right: 18px;
}

.kb-pdp__gallery-arrow svg {
    width: 18px;
    height: 18px;
    stroke: #111;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {

    .kb-pdp__gallery-arrow {
        width: 38px;
        height: 38px;
        top: auto;
        bottom: 16px;
        transform: none;
    }

    .kb-pdp__gallery-arrow--prev {
        left: 12px;
    }

    .kb-pdp__gallery-arrow--next {
        right: 12px;
    }
}

.kb-pdp__gallery-arrow svg {
  width: 22px;
  height: 22px;
  stroke: #111;
  stroke-width: 2.4;
}

@media (min-width: 768px) {
  .kb-pdp__gallery-arrow {
    width: 46px;
    height: 46px;
  }

  .kb-pdp__gallery-arrow svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 767px) {
  .kb-pdp__gallery-arrow {
    top: 50%;
    bottom: auto;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
    transform: translateY(-50%);
  }

  .kb-pdp__gallery-arrow--prev {
    left: 16px;
  }

  .kb-pdp__gallery-arrow--next {
    right: 16px;
  }

  .kb-pdp__gallery-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.6;
  }
}

/* Related products */

.kb-related {
  padding: 72px 48px 0;
  max-width: 1440px;
  margin: 0 auto;
}

.kb-related__title {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  color: #111;
}

.kb-related__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kb-related__products li,
.kb-related__products .product {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kb-related__products li::before,
.kb-related__products li::marker,
.kb-related__products .product::before {
  display: none !important;
  content: none !important;
}

.kb-related__products a {
  color: #111;
  text-decoration: none;
}

.kb-related__products a:hover {
  color: #111;
}

.kb-related__products .price {
  color: #111;
  font-weight: 600;
}

.kb-related__products .price del {
  color: #999;
  font-weight: 400;
}

.kb-related__products .button,
.kb-related__products .add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  margin-top: 18px;
  padding: 13px 24px;
  border: 1px solid #111;
  background: #fff;
  color: #111 !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  box-sizing: border-box;
}

.kb-related__products .button:hover,
.kb-related__products .add_to_cart_button:hover {
  background: #111;
  color: #fff !important;
}

.kb-related__products .yith-wcwl-add-to-wishlist,
.kb-related__products .tinv-wraper,
.kb-related__products .woosw-btn,
.kb-related__products .woosq-btn,
.kb-related__products .wooscp-btn,
.kb-related__products .add_to_wishlist,
.kb-related__products [class*="wishlist"],
.kb-related__products [class*="wish"] {
  display: none !important;
}

.kb-related__catalog {
  margin-top: 46px;
  text-align: center;
}

.kb-related__catalog a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.kb-related__catalog a::after {
  content: '→';
  margin-left: 10px;
}

.kb-related__catalog a:hover {
  background: transparent;
  color: #e86f2a;
}

@media (max-width: 767px) {
  .kb-related {
    padding: 52px 18px 0;
    overflow: hidden;
  }

  .kb-related__title {
    margin-bottom: 22px;
    font-size: 26px;
  }

  .kb-related__products {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .kb-related__products .product,
  .kb-related__products li.product {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: start;
  }

  .kb-related__products .button,
  .kb-related__products .add_to_cart_button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin-top: 20px;
    padding: 15px 18px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .05em;
  }

  .kb-related__catalog {
    margin-top: 48px;
    text-align: center;
  }

  .kb-related__catalog a {
    width: auto;
    padding-bottom: 5px;
    font-size: 13px;
  }
}