.product-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 2rem;
  justify-content: end;
  background: linear-gradient(
    85.49deg,
    rgba(255, 253, 246, 0.42) 4.1%,
    rgba(176, 149, 100, 0.2142) 93.46%
  );
}

.product-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #795410;
  transition: all 0.3s;

  &:hover {
    opacity: 0.7;
  }

  &.next .product-action-btn {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
  }
}

.product-action-stick {
  width: 1px;
  background-color: #795410;
  height: 26px;
}

.product-action-btn {
  background-color: #584b30;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;

  &.prev {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
  }
}

.product {
  border: 8px solid #d0c7b3;
  padding: 1.5rem;
  background: linear-gradient(
    270deg,
    rgba(249, 231, 188, 0.21) 0%,
    rgba(255, 255, 255, 0.21) 55.92%
  );
}

.product-wrapper {
  padding-block: 2rem;
}

.product-top {
  display: flex;
  align-items: center;
  width: 100%;
  padding-bottom: 2rem;
}

.product-title {
  padding: 0.5rem 1rem;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 217, 163, 0.2) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
}

.product-advs {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 1rem;
}

.product-adv {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  width: 100%;
  color: #b85e39;

  &.adv2 {
    color: #926832;
  }

  &.adv3 {
    color: #d29423;
  }

  svg {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
  }
}

.product-layout {
  display: flex;
  gap: 1.5rem;
}

.product-gallery {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding: 0 20px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.main-slider {
  width: 100%;
  aspect-ratio: 1;
  background-color: #f9f9f9;
}

.main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-slider {
  width: 100%;
  height: 100px;
  box-sizing: border-box;
}

.thumb-slider .swiper-slide {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumb-slider .swiper-slide-thumb-active,
.thumb-slider .swiper-slide:hover {
  border-color: #f7d79d;
}

.thumb-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1.5rem;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.product-price-text {
  font-size: 1.25rem;
  font-weight: 700;

  .product-price {
    color: #9b6d36;
    font-size: 2rem;

    span {
      font-size: 1.25rem;
    }
  }
}

.product-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-order-button,
.product-calc-button {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffedce;
  background-color: #9baa55;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: all 0.3s;
  height: 100%;

  &:hover {
    opacity: 0.7;
  }

  svg {
    flex-shrink: 0;
  }
}

.product-calc-button {
  background-color: #ffe0a7;
  color: #9b6d36;

  text-decoration: underline dashed #9b6d36;
  text-underline-offset: 2px;
}

.product-split {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0.75rem;
  background: linear-gradient(
    to right,
    transparent 0%,
    #e2faea 10%,
    #e2faea 90%,
    transparent 100%
  );
}

.product-params {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-params-title {
  font-family: var(--font-secondary);
  font-size: 2rem;
  background: linear-gradient(
    90deg,
    rgba(252, 223, 170, 0.9) 0%,
    rgba(252, 223, 170, 0.225) 100%
  );
  padding: 0.5rem 1rem;
}

.product-params-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-param {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background-color: transparent;

  &:nth-child(odd) {
    background-color: #b0956450;
  }
}

.product-param-title {
  color: #3c3b36;
  font-weight: 700;
}

.product-param-text {
  font-size: 0.875rem;
  color: #76736f;
  width: 100%;
}

.product-param-content {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-param-detail-button {
  color: #9b6d36;
  text-decoration: underline dashed #9b6d36;
  text-underline-offset: 2px;
  transition: all 0.3s;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;

  &:hover {
    opacity: 0.7;
  }

  &:after {
    content: "";
    width: 0px;
    height: 0px;
    border-style: solid;
    border-color: transparent transparent transparent #453b27;
    border-width: 6px 0px 6px 8px;
  }
}

.prodcut-consult {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.product-consult-title {
  font-size: 1.5rem;
  font-family: var(--font-secondary);
}

.product-consult-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tab-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tab-panel.active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.tabs-header {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.tabs-body {
  position: relative;
}

.tab-btn {
  color: #795410;
  font-weight: bold;
  padding: 1rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(226, 179, 95, 0.23) 0%,
    rgba(255, 244, 207, 0.23) 100%
  );

  &.active,
  &:hover {
    background:
      linear-gradient(
        90deg,
        rgba(255, 175, 64, 0.83) 0%,
        rgba(255, 175, 64, 0.249) 100%
      ),
      #ffda9a;
  }
}

.tabs-wrapper {
  scroll-margin-top: 160px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-tab-title {
  font-size: 1.5rem;
  font-family: var(--font-secondary);
}

.furniture-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.furniture {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  justify-content: space-between;
  background: linear-gradient(
    84.98deg,
    rgba(176, 149, 100, 0.1326) 0.67%,
    rgba(176, 149, 100, 0.0858) 69.26%
  );
}

.product-furniture-text {
  line-height: 150%;
  color: #76736f;
}

.product-furniture-imgs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-self: flex-end;
}

.furniture-img {
  /* max-height: 180px;
  object-fit: cover; */
  width: 100%;
}

.furniture-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-colors-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-color-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0.75rem;
}

.product-color-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #a5a4a5;
}

.color {
  width: 70px;
  height: 30px;
  transition: all 0.3s;

  &:hover {
    transform: scale(1.5);
  }
}

.product-facades {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-facade {
  transition: all 0.3s;

  &:hover {
    transform: scale(1.2);
  }
}

.product-facade-title {
  display: none;
}

.ideas {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 280px);
  gap: 6px;
  grid-template-areas:
    "a1 a2 a3 a4"
    "a1 a5 a3 a6"
    "a7 a7 a8 a9";
}

.ideas-item:nth-child(1) {
  grid-area: a1;
}
.ideas-item:nth-child(2) {
  grid-area: a2;
}
.ideas-item:nth-child(3) {
  grid-area: a3;
}
.ideas-item:nth-child(4) {
  grid-area: a4;
}
.ideas-item:nth-child(5) {
  grid-area: a5;
}
.ideas-item:nth-child(6) {
  grid-area: a6;
}
.ideas-item:nth-child(7) {
  grid-area: a7;
}
.ideas-item:nth-child(8) {
  grid-area: a8;
}
.ideas-item:nth-child(9) {
  grid-area: a9;
}

.ideas-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.ideas-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ideas-item:hover img {
  transform: scale(1.05);
}

.ideas-label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(88, 60, 6, 0) 0%,
    rgba(88, 60, 6, 0.87) 100%
  );
}

.ideas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media all and (max-width: 1505px) {
  .product-buttons {
    flex-direction: column;
  }

  .product-layout {
    gap: 0.5rem;
  }

  .product-order-button,
  .product-calc-button {
    min-width: 280px;
    justify-content: center;
  }

  .product-gallery {
    flex: 0 0 60%;
  }
}

@media all and (max-width: 1220px) {
  .product-advs {
    display: flex;
  }

  .product-adv svg {
    width: 48px;
    height: 48px;
  }

  .product-param-content {
    flex-direction: column;
  }

  .product-param-detail-button {
    align-self: flex-end;
  }

  .product-param {
    align-items: start;
  }
}

@media all and (max-width: 1023px) {
  .furniture-list {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 0.75rem;
  }

  .product-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .product-top {
    flex-direction: column;
    gap: 0.75rem;
  }

  .product-advs {
    align-self: flex-end;
  }

  .ideas {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 210px);
    grid-template-areas:
      "a1 a2"
      "a1 a3"
      "a4 a4"
      "a5 a6"
      "a7 a8"
      "a7 a9";
  }
}

@media all and (max-width: 767px) {
  .product-param-title {
    font-size: 0.875rem;
  }

  .product-param {
    gap: 0.75rem;
  }

  .product-actions {
    padding: 0.5rem;
    gap: 0.75rem;
    justify-content: space-between;
  }

  .product-action {
    font-size: 0.75rem;
    gap: 0.75rem;
    justify-content: start;
    text-align: start;

    &.next {
      text-align: end;
    }
  }

  .product-action-btn {
    width: 32px;
    height: 32px;
  }

  .tabs-header {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    border-top-right-radius: 0.25rem;
    border-top-left-radius: 0.25rem;
    z-index: 2;
    gap: 0.25rem;

    &::-webkit-scrollbar {
      display: none;
    }

    &:active {
      cursor: grabbing;
    }
  }

  .product-adv {
    font-size: 0.675rem;

    svg {
      width: 32px;
      height: 32px;
    }
  }

  .product {
    padding: 1rem;
  }

  .product-gallery {
    padding: 0;
  }

  .product-consult-title {
    font-size: 1.25rem;
  }

  .product-params-title {
    font-size: 1.5rem;
  }

  .product-description {
    font-size: 0.875rem;
  }

  .product-split {
    img {
      max-height: 45px;
    }
  }

  .product-advs {
    gap: 0.5rem;
  }

  .product-param {
    gap: 0.5rem;
  }

  .ideas {
    grid-template-rows: repeat(6, 180px);
  }
}
