.product a {
    content: '';
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
}

.product__wrapper {
    position: relative;
    z-index: 3;
}

.product__pictures {
    position: relative;
    z-index: 3;
}

.product__head {
    position: relative;
    display: flex;
    margin-bottom: 5px;
    z-index: 3;
}

.tablewrap {
  display: flex;
  align-items: flex-start;
  gap: 32px; /* или сколько нужно */
  width: 1000px
}
td.headert {
    background: #efe7d2;
    font-weight: bold;
    font-style: italic;
    font-size: 15px;
    padding-left: 15px !important;
    line-height: 0 !important;
}


table.complect td {
    vertical-align: middle;
    height: 30px;
}
tr.activerow {
    background: #fff7e0 !important;
    transition: background 0.2s;
}

.complect {
        padding: 0px;
        width: 500px;
    }

.foto img {
        width: 100px;
      
    }

    @media (max-width: 900px) {
        .tableflex {
            flex-direction: column;
            gap: 16px;
        }

        .foto {
            flex-direction: row;
            flex-wrap: wrap;
            max-height: none;
            min-width: 0;
        }

        .foto img {
            width: 80px;
            margin-right: 8px;
            margin-bottom: 8px;
        }
    }

@media (max-width: 900px) {
  .tablewrap {
    flex-direction: column;
    width: 100%; 
  }

  .foto {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .foto img {
    width: 80px;
    margin: 0; 
  }
}

/* Подсветка изображений подарков  */

.foto img {
    opacity: 0.3;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.foto img.activeimg {
    opacity: 1;
    box-shadow: 0 0 20px 5px #ffb300;
    z-index: 2;
    position: relative;
}


/* размер таблицы */
@media (max-width: 900px) {
  .complect {
    width: 100% !important;
    table-layout: fixed;
  }

  .complect td {
    padding: 4px 6px; /* Уменьшить отступы внутри ячеек */
    font-size: 15px;  /* Сделать текст компактнее */
    
   white-space: normal;
  }
  .complect {
    table-layout: auto; /* чтобы сохранять гибкость */
    width: 100%;
  }

  .complect .headert {
      
    font-size: 14px;
    padding: 6px 8px !important;
  }
}