.single-product main,
.single-product .site-main {
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)),
    repeating-linear-gradient(90deg, rgba(255, 0, 68, 0.34) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 255, 204, 0.28) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(135deg, rgba(35, 92, 255, 0.34) 0 1px, transparent 1px 5px),
    url("../img/rodina-logo.png");
  background-repeat: no-repeat, repeat, repeat, repeat, repeat;
  background-position:
    center,
    var(--rgb-noise-a, 0 0),
    var(--rgb-noise-b, 0 0),
    var(--rgb-noise-c, 0 0),
    var(--rodina-logo-position, 0 0);
  background-size: cover, 3px 3px, 4px 4px, 5px 5px, 500px auto;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  animation: rodina-rgb-static 0.18s steps(2, end) infinite;
}

.rodina-product {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding: 36px 0 120px;
  color: #fff;
}

.rodina-product__breadcrumb {
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.rodina-product__breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}

.rodina-product__breadcrumb a:hover {
  color: #fff;
}

.rodina-product__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: start;
  gap: clamp(48px, 7vw, 110px);
}

.rodina-product__gallery {
  min-width: 0;
}

.rodina-product__gallery .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.rodina-product__gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.rodina-product__gallery .woocommerce-product-gallery__image {
  overflow: hidden;
  background: #111;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 7px 7px 0 #ff4fdf;
}

.rodina-product__gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.rodina-product__gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 12px 0 0 !important;
  padding: 0;
  list-style: none;
}

.rodina-product__gallery .flex-control-thumbs li {
  width: auto !important;
  float: none !important;
}

.rodina-product__gallery .flex-control-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 0;
  opacity: 0.55;
}

.rodina-product__gallery .flex-control-thumbs img.flex-active,
.rodina-product__gallery .flex-control-thumbs img:hover {
  border-color: #fff;
  opacity: 1;
}

.rodina-product__summary {
  position: sticky;
  top: 132px;
  min-width: 0;
}

.rodina-product__eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.rodina-product__title {
  margin: 0;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.rodina-product__price {
  margin-top: 26px;
  font-size: 24px;
  font-weight: 700;
}

.rodina-product__price p {
  margin: 0;
}

.rodina-product__price del {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72em;
}

.rodina-product__price ins {
  color: #fff;
  text-decoration: none;
}

.rodina-product__excerpt {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.9;
}

.rodina-product__cart {
  margin-top: 34px;
}

.rodina-size-selector {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 18px;
  background: #080808;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 5px 5px 0 #ff4fdf;
}

.rodina-size-selector legend {
  width: auto;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  padding: 0 8px;
  color: #fff;
  background: #000;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: 22px;
  line-height: 1;
}

.rodina-size-selector legend span {
  margin-left: 8px;
  color: #53ffd8;
  font-family: "DotGothic16", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.rodina-size-selector__options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rodina-size-selector__options label {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  display: block;
  cursor: pointer;
}

.rodina-size-selector__options input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  appearance: none;
}

.rodina-size-selector__options span {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #000;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 #222;
  font-family: "DotGothic16", monospace;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.1s steps(2, end), box-shadow 0.1s steps(2, end);
  user-select: none;
  -webkit-user-select: none;
}

.rodina-size-selector__options label:hover span {
  color: #000;
  background: #fff;
  box-shadow: 3px 3px 0 #53ffd8;
}

.rodina-size-selector__options input:checked + span,
.rodina-size-selector__options label:hover input:checked + span {
  color: #000;
  background: #53ffd8;
  border-color: #fff;
  box-shadow: 3px 3px 0 #ff4fdf;
  transform: translate(-2px, -2px);
}

.rodina-size-selector__options input:focus-visible + span {
  outline: 3px solid #ff4fdf;
  outline-offset: 3px;
}

.rodina-product__cart form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.rodina-product__cart .quantity .qty {
  width: 72px;
  height: 52px;
  box-sizing: border-box;
  background: #0c0c0c;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #ff4fdf;
  font-family: "DotGothic16", monospace;
  font-size: 15px;
  text-align: center;
}

.rodina-product__cart .single_add_to_cart_button {
  min-height: 52px;
  padding: 0 30px !important;
  background: #000 !important;
  color: #fff !important;
  border: 3px solid #fff !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 #53ffd8;
  font-family: "DotGothic16", monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.rodina-product__cart .single_add_to_cart_button:hover {
  background: #151515 !important;
  color: #fff !important;
  border-color: #fff !important;
}

.rodina-product__cart .stock {
  color: rgba(255, 255, 255, 0.62) !important;
}

.rodina-product__meta {
  margin-top: 30px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 2;
}

.rodina-product__meta > span {
  display: block;
}

.rodina-product__meta a {
  color: rgba(255, 255, 255, 0.78);
}

.rodina-product__details,
.rodina-product__related {
  margin-top: 100px;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rodina-product__description {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
}

.rodina-product__description > :first-child {
  margin-top: 0;
}

.rodina-product__description > :last-child {
  margin-bottom: 0;
}

.rodina-product__details h2,
.rodina-product__related h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
}

.rodina-product__related ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 0 !important;
}

.rodina-product__related ul.products::before,
.rodina-product__related ul.products::after {
  display: none;
}

.rodina-product__related ul.products li.product {
  width: auto !important;
  min-width: 0;
  overflow: hidden;
  float: none !important;
  margin: 0 !important;
  padding-bottom: 16px;
  background: #0b0b0b;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 6px 6px 0 #ff4fdf;
}

.rodina-product__related ul.products img {
  margin: 0 0 14px !important;
  border-radius: 0;
}

.rodina-product__related .woocommerce-loop-product__title,
.rodina-product__related .price {
  color: #fff !important;
}

.rodina-product__related .woocommerce-loop-product__title {
  padding: 0 14px !important;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
}

.rodina-product__related .price {
  margin: 8px 14px 0 !important;
}

.rodina-product__related ul.products li.product .button,
.rodina-product__related ul.products li.product .added_to_cart {
  width: calc(100% - 28px);
  min-width: 0;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  margin: 16px 14px 0 !important;
  padding: 0 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 #53ffd8;
  font-family: "DotGothic16", monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center;
  white-space: nowrap;
}

.rodina-product__related ul.products li.product .button:hover,
.rodina-product__related ul.products li.product .added_to_cart:hover {
  background: #151515 !important;
  color: #fff !important;
  border-color: #fff !important;
}

@media (max-width: 900px) {
  .single-product main,
  .single-product .site-main {
    background-size: cover, 3px 3px, 4px 4px, 5px 5px, 360px auto;
    background-attachment: fixed, fixed, fixed, fixed, fixed;
  }

  .rodina-product {
    width: calc(100% - 40px);
  }

  .rodina-product__main {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .rodina-product__summary {
    position: static;
  }

  .rodina-product__related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rodina-product {
    width: calc(100% - 32px);
    padding: 24px 0 80px;
  }

  .rodina-product__breadcrumb {
    margin-bottom: 24px;
  }

  .rodina-product__gallery .woocommerce-product-gallery__image {
    border-radius: 0;
  }

  .rodina-product__cart form.cart {
    align-items: stretch;
    flex-direction: column;
  }

  .rodina-size-selector {
    margin-bottom: 20px;
    padding: 14px 12px;
    box-shadow: 4px 4px 0 #ff4fdf;
  }

  .rodina-size-selector legend {
    font-size: 19px;
  }

  .rodina-size-selector legend span {
    display: block;
    margin: 5px 0 0;
  }

  .rodina-size-selector__options {
    gap: 6px;
  }

  .rodina-size-selector__options span {
    min-height: 44px;
    font-size: 14px;
  }

  .rodina-product__cart .quantity .qty,
  .rodina-product__cart .single_add_to_cart_button {
    width: 100%;
  }

  .rodina-product__cart .quantity {
    width: 100%;
    margin: 0;
  }

  .rodina-product__details,
  .rodina-product__related {
    margin-top: 72px;
    padding-top: 40px;
  }
}
